#ifndef DEBUGSTREAM_H
#define DEBUGSTREAM_H
-#include <iostream>
+#include "LOstream.h"
#ifdef TEST_DEBUGSTREAM
#include <string>
debug[Debug::type(Debug::INFO | Debug::CRIT)] << "...info/crit...\n";
*/
+
+// This workaround is needed only for gcc 2.8.1 (and possibly egcs
+// 1.0.x), which generates a compiler error when subclassing from
+// std::. (JMarc)
+#ifdef CXX_WORKING_NAMESPACES
class DebugStream : public std::ostream {
+#else
+class DebugStream : public ostream {
+#endif
public:
/// Constructor, sets the debug level to t.
explicit DebugStream(Debug::type t = Debug::NONE);
/// Constructor, sets the log file to f, and the debug level to t.
+ explicit
DebugStream(char const * f, Debug::type t = Debug::NONE);
///