Am Sonntag, 5. November 2006 17:19 schrieb Enrico Forestieri:
> where os is an odocstream. If I change these lines to:
> 
>     if (par_begin + 1 == par_end)
>           os << "% Preview source code for current paragraph\n\n";
>     else
>           os << "% Preview source code for selected paragraphs\n\n";
> 
> i.e., if I don't try to output an integral type to os, then everything
> works. I don't understand the reason of this. Everything I tried failed.
> I really don't know anything about facets and char_traits (there's
> nothing about them in my 1994 book by Stroustrup), so I think I am lost
> here. Any kind soul has a suggestion on what to do?

If you want to learn more about the locale stuff you can download Appendix 
D of the current edition from Stroustrups web site.

I guess that something happens in operator<<(odocstream, int) that 
invalidates the stream. Therefore the following stuff is not output 
anymore.

I have no idea which facet is involved here, but Step-by-step debugging 
would tell that quickly. Is it still impossible to run gdb?


Georg

Reply via email to