]> git.lyx.org Git - lyx.git/blobdiff - src/support/docstream.h
Fix bugs #6078 and #9364
[lyx.git] / src / support / docstream.h
index 0a2d42b38bb418b0b6a02d3a7a55c507ff962f64..a544082f27208d0a79c7d8b89f47775e507ea380 100644 (file)
@@ -41,9 +41,9 @@ typedef std::basic_istream<char_type> idocstream;
     \endcode, not \code
     os << c;
     \endcode . The latter will not output the character, but the code point
-    as number. This is because we can't overload operator<< (our character
-    type is not a real type but a typedef). Narrow characters of type char
-    can be output as usual.
+    as number if USE_WCHAR_T is not defined. This is because we can't overload
+    operator<< (our character type is not always a real type but sometimes a
+    typedef). Narrow characters of type char can be output as usual.
  */
 typedef std::basic_ostream<char_type> odocstream;
 
@@ -79,8 +79,9 @@ public:
 /// UCS4 input stringstream
 typedef std::basic_istringstream<char_type> idocstringstream;
 
-/// UCS4 output stringstream
-typedef std::basic_ostringstream<char_type> odocstringstream;
+/// UCS4 output manipulator
+typedef odocstream & (*odocstream_manip)(odocstream &);
+
 
 /// Helper struct for changing stream encoding
 struct SetEnc {