mirror of
https://github.com/boostorg/test.git
synced 2026-02-19 14:52:09 +00:00
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:
@@ -29,7 +29,7 @@
|
||||
|
||||
// STL
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <boost/detail/iomanip.hpp>
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
@@ -525,7 +525,7 @@ TEST_CASE( test_BOOST_TEST_MESSAGE )
|
||||
BOOST_TEST_MESSAGE( "0x14" );
|
||||
#endif
|
||||
|
||||
BOOST_TEST_MESSAGE( std::setw( 4 ) << 20 );
|
||||
BOOST_TEST_MESSAGE( boost::detail::setw( 4 ) << 20 );
|
||||
}
|
||||
|
||||
//____________________________________________________________________________//
|
||||
|
||||
Reference in New Issue
Block a user