From 2b30eb22252a7aa3cfdfa0e09bfd2d93e4b2de07 Mon Sep 17 00:00:00 2001 From: Bryce Adelstein-Lelbach Date: Fri, 14 Jan 2011 02:35:58 +0000 Subject: [PATCH] Replacing the use of with across Boost. On Linux, GNU's libstdc++, which is the default stdlib for icc and clang, cannot parse the 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. is a portable implementation of , providing boost::detail::setfill, boost::detail::setbase, boost::detail::setw, boost::detail::setprecision, boost::detail::setiosflags and boost::detail::resetiosflags. [SVN r68140] --- test/io_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/io_test.cpp b/test/io_test.cpp index 382f8cc..69957d3 100644 --- a/test/io_test.cpp +++ b/test/io_test.cpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #if defined BOOST_NO_STRINGSTREAM #include @@ -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");