Thanks to Colin and Etienee for the pointers. I've tried to port across to using std::istringstream but alas it isn't compatible with istrstream, something I've applied a couple of workarounds, but am still getting compile problems elsewhere that are down to incompatibilties between std::istringstream and std::istream.
Brede, could you have a look at porting across to using the up to date std versions of istrstream, as you should be able to determine beter what functionality you are after, since there is a drop in replacement I don't want to go breaking runtime functionality with hacks. Cheers, Robert. On 6/28/06, Colin Dunlop <[EMAIL PROTECTED]> wrote:
Hi Robert, I think it's <sstream> and std::istringstream etc. Was http://msdn2.microsoft.com/en-us/library/1a7d3k07.aspx Now http://msdn2.microsoft.com/en-us/library/5e52z6w7.aspx I've a lot of code using the old "deprecated" (but clean) strstream code, and it's a pain unless you enable the flag -Wno-deprecated which just sweeps it under the rug ;) Cheers, Colin. Robert Osfield wrote: > I'm getting a number of warnings with the new OpenFlight plugin under > gcc 4.0.2. Attached are the warnings. Some are just unused > variables, others are of the form: > > In file included from /usr/include/c++/4.0.2/backward/strstream:51, > from ../Pools.h:14, > from ../Document.h:18, > from ../ControlRecords.cpp:11: > /usr/include/c++/4.0.2/backward/backward_warning.h:32:2: warning: > #warning This file includes at least one deprecated or antiquated > header. Please consider using one of the 32 headers found in section > 17.4.1.2 of the C++ standard. Examples include substituting the <X> > header for the <X.h> header for C++ includes, or <iostream> instead of > the deprecated header <iostream.h>. To disable this warning use > -Wno-deprecated. > > But what should strstream be replaced by? Suggestions welcome. > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
