// Forward definitions do not work with libc++
// but ios_base has already been defined in strfwd
// if compiling with it
-#ifndef _LIBCPP_VERSION
+#ifndef USE_LLVM_LIBCPP
namespace std {
class ios_base;
template<typename CharT, typename Traits> class basic_streambuf;
typedef basic_streambuf<char, char_traits<char> > streambuf;
-}
+} // namespace std
#endif
///
WORKAREA = (1 << 19),
///
- INSETTEXT = (1 << 20),
+ CLIPBOARD = (1 << 20),
///
GRAPHICS = (1 << 21),
/// change tracking
/// Return number of levels
int levelCount();
-
+
/// A function to convert debug level string names numerical values
Type value(std::string const & val);
class LyXErr
{
public:
- LyXErr(): dt_(Debug::NONE), enabled_(true), second_enabled_(false) {}
-
+ LyXErr(): dt_(Debug::NONE), stream_(0), enabled_(true),
+ second_stream_(0), second_enabled_(false) {}
+
/// Disable the stream completely
void disable();
/// Enable the stream after a possible call of disable()
/// Returns second stream
std::ostream & secondStream() { return *second_stream_; }
/// Sets second stream
- void setSecondStream(std::ostream * os)
+ void setSecondStream(std::ostream * os)
{ second_enabled_ = (second_stream_ = os); }
/// Is the second stream is enabled?
bool secondEnabled() { return second_enabled_; }
LyXErr & operator<<(LyXErr &, unsigned int);
LyXErr & operator<<(LyXErr &, long);
LyXErr & operator<<(LyXErr &, unsigned long);
+#ifdef HAVE_LONG_LONG_INT
+LyXErr & operator<<(LyXErr &, long long);
+LyXErr & operator<<(LyXErr &, unsigned long long);
+#endif
LyXErr & operator<<(LyXErr &, double);
LyXErr & operator<<(LyXErr &, std::string const &);
LyXErr & operator<<(LyXErr &, docstring const &);