Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-11-15 14:44:17

larsbj_at_[hidden] wrote:
> It seems that the checks for sstream of lexical_cast became a little
> bit to strong. (GCC 3 has a good sstream.) This:

Note the comment right above the preprocessor checks:

// The GNU sstream implementation is broken for the purposes of lexical cast.

We're already checking with BOOST_NO_STRINGSTREAM whether <sstream>
is available or not.
The comment quoted above seems to indicate that tests with GNU's
<sstream> implementation, although in principle available, produced
problems. You may want to review the CVS logs to find out who
put the comment in and then contact that person directly, asking
him/her to elaborate on the comment.

> But I have not checked if gcc < 3 handles this
> ok, but I would guess so since previous gcc's came with the SGI STL.
> Supposedly the "!defined(__STL_USE_NEW_IOSTREAMS)" should make
> lexical_cast use sstream, but that does not happen.

Note also that gcc <= 2.95.2 does not have <sstream> at all.
2.95.3 does have <sstream>.

> Also in regex_traits.hpp I have to do this change:

Please send an e-mail to John Maddock directly.

Jens Maurer

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