* sidcpuutil.h (end_line): New method of basic_cpu::cpu_trace_stream.
(operator<<): Use static_cast instead of dynamic_cast.
+2003-08-21 Dave Brolley <brolley@redhat.com>
+
+ * sidcpuutil.h (end_line): New method of basic_cpu::cpu_trace_stream.
+ (operator<<): Use static_cast instead of dynamic_cast.
+
2003-06-20 Frank Ch. Eigler <fche@redhat.com>
* sidattrutil.h (fixed_attribute_map_with_logging_component):
std::ofstream::open (filename.c_str (), std::ios::app);
cout_p = false;
}
+ void end_line ()
+ {
+ if (LIKELY (cout_p))
+ std::cout << std::endl;
+ else
+ *this << std::endl;
+ }
bool cout_p;
};
if (LIKELY (s.cout_p))
std::cout << t;
else
- dynamic_cast <std::ofstream&> (s) << t;
+ static_cast <std::ofstream&> (s) << t;
return s;
}