Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2003-11-27 06:44:33


The following small patches get the unit test lib working with gcc2.95 again
(tested on Red Hat Linux 9):

Index: detail/wrap_stringstream.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/test/detail/wrap_stringstream.hpp,v
retrieving revision 1.7
diff -r1.7 wrap_stringstream.hpp
107a108
> #ifndef BOOST_NO_STD_LOCALE
136a138
> #endif

Index: test_tools.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/test/src/test_tools.cpp,v
retrieving revision 1.23
diff -r1.23 test_tools.cpp
197c197,204
< ostr << std::hex << std::showbase << (int)t;

---
>         ostr << std::hex
>         // showbase is only available for new style streams:
> #ifndef BOOST_NO_STD_LOCALE
>         << std::showbase
> #else
>         << "0x"
> #endif
>         << (int)t;
205c212,219
<     ostr << std::hex << std::showbase << (int)t;
---
>     ostr << std::hex
>         // showbase is only available for new style streams:
> #ifndef BOOST_NO_STD_LOCALE
>         << std::showbase
> #else
>         << "0x"
> #endif
>        << (int)t;
If you want me to apply these let me know,
Thanks,
John.

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