Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.

On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
This commit is contained in:
Bryce Adelstein-Lelbach
2011-01-14 02:35:58 +00:00
parent 9fbc9b4cc6
commit 2b30eb2225

View File

@ -20,7 +20,7 @@
#include <iterator>
#include <algorithm>
#include <string>
#include <iomanip>
#include <boost/detail/iomanip.hpp>
#if defined BOOST_NO_STRINGSTREAM
#include <strstream>
@ -81,7 +81,7 @@ int test_main(int argc, char * argv[] ) {
// check width
useThisOStringStream os4;
os4 << std::setw(10) << make_tuple(1, 2, 3);
os4 << boost::detail::setw(10) << make_tuple(1, 2, 3);
BOOST_CHECK (os4.str() == std::string(" (1 2 3)") );
std::ofstream tmp("temp.tmp");