>From: "Kevlin Henney" <[EMAIL PROTECTED]> > 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) || \ > 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). > // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't > // have <sstream>. > # define BOOST_NO_STRINGSTREAM > > #endif > > 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. Regards, Terje _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost