Mail Archives: djgpp/1999/08/18/19:19:21
Piotr Eljasiak wrote:
> My problem regards strstream repositioning - every time I seekg()
> to stored position and then write to strstream, data in strstream
> is truncated. Here is my sample code:
[snip]
> Instead of (IMHO) "The quick brown fox jumped over the lazy dog. *** quick
> brown fox jumped over the lazy dog. "
> the output is truncated to "The quick brown fox jumped over the lazy dog.
> ***".
> Where is an error in the above code ?
Is strstream part of the ANSI C++ standard? Anyways, I agree that it
should work the way you expect, but I suspect that it was programed to use
something similar to strcat to impliment the "<<" operator. Some day when
I'm not too lazy, I'll take a look at the sources and see what I can do (if
the maintainers agree with our conclusion)
--
-Rolf Campbell (39)3-6318
- Raw text -