Re: [Threads-list] Two bugs
Brought to you by:
hanseno
|
From: Orn E. H. <oe....@ni...> - 2001-10-07 18:52:07
|
sunnudagur 7. október 2001 16:59, Carlo Wood skrifaði:
>
> 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.
>
It's what I'm looking at now...
> If I can be of any help let me know.
>
The only place its really needed, is in the thread_io class... it has
putf(..) method, that allows for formatted data through a socket, streamed.
Question is how much it would be desired, it would mean I'd need to use C
vsprintf if a standard wasn't there?
> 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.
Ok, will do that... thanks.
Orn
|