#include "support/strfwd.h"
+// Forward definitions do not work with libc++
+// but ios_base has already been defined in strfwd
+// if compiling with it
+#ifndef _LIBCPP_VERSION
namespace std {
class ios_base;
typedef basic_streambuf<char, char_traits<char> > streambuf;
}
+#endif
namespace lyx {
class LyXErr
{
public:
- LyXErr(): enabled_(true), second_enabled_(false) {}
+ LyXErr(): dt_(Debug::NONE), enabled_(true), second_enabled_(false) {}
/// Disable the stream completely
void disable();
bool enabled() const { return enabled_; }
/// Returns second stream
- std::ostream & secondStream() { return *second_stream_; };
+ std::ostream & secondStream() { return *second_stream_; }
/// Sets second stream
void setSecondStream(std::ostream * os)
{ second_enabled_ = (second_stream_ = os); }