]> git.lyx.org Git - features.git/blobdiff - src/support/docstring.cpp
introduce a header to forward declare std::string.
[features.git] / src / support / docstring.cpp
index 8ea76f95ecc9ca8d01d1039bbf08c80eb85919c4..2baa974a0b6e91e36d84a021a6b6d7cb679d1e25 100644 (file)
@@ -194,7 +194,9 @@ lyx::docstring operator+(char const * l, lyx::docstring const & r)
 lyx::docstring operator+(lyx::docstring const & l, char r)
 {
        BOOST_ASSERT(static_cast<unsigned char>(r) < 0x80);
-       return l + lyx::docstring::value_type(r);
+       docstring s = l;
+       s += docstring::value_type(r);
+       return s;
 }