On Wed, 02 Apr 2003 10:58:21 +0200 Erik Hofman <[EMAIL PROTECTED]> wrote:
> Gerhard Wesp wrote: > >>strstream would do the trick, but not all compilers support it yet. > > > > > > Note that <strstream> is *deprecated* in C++, one should use > > stringstreams (<sstream>) instead. No danger of overflowing any buffers > > there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2. > > > > AFAIK, every major platform now does have compilers which come > > sufficiently close to the standard to support <sstream>, or am I missing > > something? > > I was thinking of adding sstream to simgear/compatibility and define a > HAVE_SSREAM in compiler.h, but unfortunatly even Boost doesn't provide a > sstream replacement header. > > If we could find one, that might be the solution (to all our problems?) stringstream is fairly complex and depends on the underlying stream and string implementations. STLport has <sstream> but I doubt if it could be extracted as a stand alone file. Have you (Erik) tried STLport on your system? If it works then we probably wouldn't need the simgear compatibility stuff anymore. Note that MSVC6 does not have <sstream> while I think VC7 does. Cheers, Bernie _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
