]> git.lyx.org Git - features.git/blobdiff - src/support/ExceptionMessage.h
introduce a header to forward declare std::string.
[features.git] / src / support / ExceptionMessage.h
index 9b752be029e5351d73ebf675e01b913fd2c6502b..1fa256451139a8e11ab29dff4d8d25da21aaf27b 100644 (file)
@@ -34,7 +34,7 @@ public:
        ExceptionMessage(ExceptionType type, docstring const & title,
                docstring const & details)
        : type_(type), title_(title), details_(details),
-         message_(to_utf8(title_ + '\n' + details_)) {}
+         message_(to_utf8(title_ + docstring::value_type('\n') + details_)) {}
 
        virtual const char * what() const throw() { return message_.c_str(); }
        virtual ~ExceptionMessage() throw() {}