]> git.lyx.org Git - features.git/blobdiff - src/support/strfwd.h
Make trivstring class ready for use
[features.git] / src / support / strfwd.h
index 10411cda229f86cd7b3270693a50f082783a2abb..94f2136403c121d25bf09ebd94eeb199426a2322 100644 (file)
@@ -95,6 +95,15 @@ std::string const & empty_string();
 // defined in docstring.cpp
 bool operator==(docstring const &, char const *);
 
+#ifdef STD_STRING_USES_COW
+template<typename Char> class trivial_string;
+typedef trivial_string<char> trivstring;
+typedef trivial_string<char_type> trivdocstring;
+#else
+typedef std::string trivstring;
+typedef docstring trivdocstring;
+#endif
+
 } // namespace lyx
 
 #endif