Re: [Threads-list] Two bugs
Brought to you by:
hanseno
From: Carlo W. <ca...@al...> - 2001-10-07 14:59:11
|
On Sun, Oct 07, 2001 at 04:25:42PM +0200, Orn E . Hansen wrote: > The compilation against 3.0 needs some work-around, as iostream and > strstream are missing formatted output methods. These methods are not part of the Standard, and therefore removed. Instead of adding a "work-around", I'd prefer it if you didn't use these methods but started to use the standard way instead. If I can be of any help let me know. You should also get rid of the deprecated strstream completely. You could do the following: #if __GNUC__ < 3 #include <strstream.h> struct stringstream : public strstream { typedef streampos pos_type; }; #else #include <sstream> #endif Then use stringstream everywhere, and use pubseekoff/pubseekpos everywhere instead of seekoff/seekpos. I think this will catch most problems related with stringstreams. -- Carlo Wood <ca...@al...> |