mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-26 16:52:24 +00:00
oved ios_traits back to separate header to break circular dependency
[SVN r27141]
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <boost/iostreams/categories.hpp>
|
||||
#include <boost/iostreams/detail/dispatch.hpp>
|
||||
#include <boost/iostreams/detail/error.hpp>
|
||||
#include <boost/iostreams/detail/ios_traits.hpp>
|
||||
#include <boost/iostreams/device/null.hpp>
|
||||
#include <boost/iostreams/traits.hpp>
|
||||
#include <boost/iostreams/is_device.hpp>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp> // BOOST_NO_SFINAE
|
||||
#include <boost/config.hpp> // BOOST_NO_SFINAE.
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <boost/iostreams/traits.hpp> // is_std_io.
|
||||
#include <boost/iostreams/detail/ios_traits.hpp> // is_std_io.
|
||||
|
||||
#ifndef BOOST_NO_SFINAE
|
||||
# define BOOST_IOSTREAMS_ENABLE_IF_STREAM(T) \
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <boost/iostreams/detail/adapter/range_adapter.hpp>
|
||||
#include <boost/iostreams/detail/config/overload_resolution.hpp>
|
||||
#include <boost/iostreams/detail/enable_if_stream.hpp>
|
||||
#include <boost/iostreams/detail/ios_traits.hpp>
|
||||
#include <boost/iostreams/detail/is_dereferenceable.hpp>
|
||||
#include <boost/iostreams/detail/is_iterator_range.hpp>
|
||||
#include <boost/iostreams/detail/select.hpp>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <boost/config.hpp> // SFINAE.
|
||||
#include <boost/iostreams/detail/enable_if_stream.hpp>
|
||||
#include <boost/iostreams/detail/ios_traits.hpp>
|
||||
#include <boost/iostreams/traits.hpp> // is_std_io.
|
||||
#include <boost/mpl/bool.hpp>
|
||||
#include <boost/mpl/identity.hpp>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <boost/config.hpp> // NO_STD_LOCALE, DEDUCED_TYPENAME, MSVC.
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/iostreams/detail/dispatch.hpp>
|
||||
#include <boost/iostreams/detail/ios_traits.hpp>
|
||||
#include <boost/iostreams/detail/wrap_unwrap.hpp>
|
||||
#include <boost/iostreams/traits.hpp>
|
||||
#include <boost/mpl/bool.hpp>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <boost/iostreams/categories.hpp>
|
||||
#include <boost/iostreams/detail/bool_trait_def.hpp>
|
||||
#include <boost/iostreams/detail/is_iterator_range.hpp>
|
||||
#include <boost/iostreams/detail/ios_traits.hpp>
|
||||
#include <boost/iostreams/detail/select.hpp>
|
||||
#include <boost/iostreams/detail/wrap_unwrap.hpp>
|
||||
#include <boost/mpl/eval_if.hpp>
|
||||
@@ -35,24 +36,8 @@
|
||||
#define BOOST_SELECT_BY_SIZE_MAX_CASE 9
|
||||
#include <boost/iostreams/detail/select_by_size.hpp>
|
||||
|
||||
//------------------Definitions of predicates for stream types----------------//
|
||||
|
||||
BOOST_IOSTREAMS_BOOL_TRAIT_DEF(is_istream, std::basic_istream, 2)
|
||||
BOOST_IOSTREAMS_BOOL_TRAIT_DEF(is_ostream, std::basic_ostream, 2)
|
||||
BOOST_IOSTREAMS_BOOL_TRAIT_DEF(is_iostream, std::basic_iostream, 2)
|
||||
BOOST_IOSTREAMS_BOOL_TRAIT_DEF(is_streambuf, std::basic_streambuf, 2)
|
||||
BOOST_IOSTREAMS_BOOL_TRAIT_DEF(is_stringstream, std::basic_stringstream, 3)
|
||||
BOOST_IOSTREAMS_BOOL_TRAIT_DEF(is_stringbuf, std::basic_stringbuf, 3)
|
||||
|
||||
namespace boost { namespace iostreams {
|
||||
|
||||
//------------------Definitions of is_std_io----------------------------------//
|
||||
|
||||
template<typename T>
|
||||
struct is_std_io
|
||||
: mpl::or_< is_istream<T>, is_ostream<T>, is_streambuf<T> >
|
||||
{ };
|
||||
|
||||
//------------------Definitions of io_char------------------------------------//
|
||||
|
||||
namespace detail {
|
||||
|
||||
Reference in New Issue
Block a user