Boost logo

Boost :

From: larsbj_at_[hidden]
Date: 2001-10-14 14:54:50


It seems that the stringstream provided with gcc 2.96 (the Redhat
version), does not cut it for lexical_cast. I get strange exceptions
that is just impossible to catch.

OTOH gcc 2.96 also provides strstream, and this works ok with
lexical_cast.

I am not sure what config should be changed to fix this, but perhaps
just a change from 95 to 96 in boost/config/stdlib/sgi.hpp:

//
// No std::stringstream with gcc < 3
//
#if defined(__GNUC__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 95) && !defined(__STL_USE_NEW_IOSTREAMS) || defined(__APPLE_CC__)
   // Note that we only set this for gnu C++ prior to 2.95 since the
   // latest patches for that release do contain a minimal <sstream>
   // If you are running a 2.95 release prior to 2.95.3 then this will need
   // setting, but there is no way to detect that automatically (other
   // than by running the configure script).
# define BOOST_NO_STRINGSTREAM
#endif

So it seems that even if 2.95.3 and 2.96.x do provide stringstream it
should be disabled for boost. (perhaps others have other datapoints)

-- 
	Lgb

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk