Am Donnerstag, 19. Oktober 2006 23:00 schrieb [EMAIL PROTECTED]:
> Modified: lyx-devel/trunk/src/support/docstream.h
> URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/src/support/docstream.h?rev=15387
> 
==============================================================================
> --- lyx-devel/trunk/src/support/docstream.h (original)
> +++ lyx-devel/trunk/src/support/docstream.h Thu Oct 19 23:00:33 2006
> @@ -62,5 +62,13 @@
>  /// UCS4 output stringstream
>  typedef std::basic_ostringstream<char_type> odocstringstream;
>  
> +inline
> +odocstream & operator<<(odocstream & os, char c)
> +{
> +    os.put(c);
> +    return os;
>  }
> +
> +}
> +

Why is this needed? This is an implicit encoding conversion, therefore a

BOOST_ASSERT(static_cast<unsigned char>(*c) < 0x80);

should be added.


Georg

Reply via email to