Boost logo

Boost :

From: larsbj_at_[hidden]
Date: 2002-01-11 10:21:02

I think the tests in lexical_cast.hpp if to use <sstream> or not is to
strong and should probably not be placed here at all. Seems to me that
the config system should be able to do this with

The <sstream> supplied with GCC < 3 is known to not work with lexical
cast. The <sstream> supplied with GCC >= 3 works fine.

Currently I do this change for this:

--- boost/boost/lexical_cast.hpp Tue Nov 6 17:06:10 2001
+++ new/boost/boost/lexical_cast.hpp Fri Jan 11 16:01:37 2002
@@ -15,7 +15,7 @@
 #include <boost/config.hpp>

 // The GNU sstream implementation is broken for the purposes of lexical cast.
-# if defined(BOOST_NO_STRINGSTREAM) || (defined(__GNUC__) && !defined(__STL_USE_NEW_IOSTREAMS) || defined(__APPLE_CC__))
 # endif

This makes both GCC < 3 and GCC >= 3 work.

btw. I didn't find Jeremys mail address in the peoples section.


Boost list run by bdawes at, gregod at, cpdaniel at, john at