From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2003-03-18 18:12:54
>From: "Kevlin Henney" <kevlin_at_[hidden]>
> Close inspection reveals that the config file
> studiously avoids accommodating g++ 2.95:
> #if defined(__GNUC__) && (__GNUC__ < 3) && \
> ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
> !defined(__STL_USE_NEW_IOSTREAMS) || \
> // 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
> // setting, but there is no way to detect that automatically (other
> // than by running the configure script).
> // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
> // have <sstream>.
> # define BOOST_NO_STRINGSTREAM
> In other words, lexical_cast will work if the instructions in the config
> file are followed. According to the config file anyone running 2.95 is
> in effect on their own. Terje's changes should be applied: any remaining
> g++ 2.95 problems would then be down to local config and rather than
> lexical_cast.hpp to address.
Also, John's suggestion (incorporated in the posted version) means that it
doesn't rely on BOOST_NO_STRINGSTREAM being set, to work on g++ 2.95.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk