mirror of
https://github.com/boostorg/detail.git
synced 2025-08-01 05:14:28 +02:00
Make <boost/detail/iomanip.hpp> include <iomanip> and put the <iomanip> functions
in the boost::detail namespace if not on clang- or intel-linux. [SVN r68165]
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
#ifndef BOOST_DETAIL_IOMANIP_HPP
|
||||
#define BOOST_DETAIL_IOMANIP_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#if (defined(BOOST_CLANG) || defined(BOOST_INTEL_LINUX)) && \
|
||||
defined(BOOST_GNU_STDLIB)
|
||||
#include <ios>
|
||||
#include <istream>
|
||||
#include <ostream>
|
||||
@@ -221,5 +225,22 @@ inline setw_manip setw (int n_) {
|
||||
} // detail
|
||||
} // boost
|
||||
|
||||
#endif // BOOST_DETAIL_IOMANIP_HPP
|
||||
#else
|
||||
#include <iomanip>
|
||||
|
||||
namespace boost {
|
||||
namespace detail {
|
||||
|
||||
using ::std::resetiosflags;
|
||||
using ::std::setiosflags;
|
||||
using ::std::setbase;
|
||||
using ::std::setfill;
|
||||
using ::std::setprecision;
|
||||
using ::std::setw;
|
||||
|
||||
} // detail
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_DETAIL_IOMANIP_HPP
|
||||
|
Reference in New Issue
Block a user