File indexing completed on 2025-01-18 09:38:50
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_IOSTREAMS_DETAIL_ENABLE_IF_STREAM_HPP_INCLUDED
0009 #define BOOST_IOSTREAMS_DETAIL_ENABLE_IF_STREAM_HPP_INCLUDED
0010
0011 #if defined(_MSC_VER)
0012 # pragma once
0013 #endif
0014
0015 #include <boost/config.hpp> // BOOST_NO_SFINAE.
0016 #include <boost/config/workaround.hpp>
0017 #include <boost/utility/enable_if.hpp>
0018 #include <boost/iostreams/traits_fwd.hpp> // is_std_io.
0019
0020 #if !defined(BOOST_NO_SFINAE) && \
0021 !BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x592))
0022 # define BOOST_IOSTREAMS_ENABLE_IF_STREAM(T) \
0023 , typename boost::enable_if< boost::iostreams::is_std_io<T> >::type* = 0 \
0024
0025 # define BOOST_IOSTREAMS_DISABLE_IF_STREAM(T) \
0026 , typename boost::disable_if< boost::iostreams::is_std_io<T> >::type* = 0 \
0027
0028 #else
0029 # define BOOST_IOSTREAMS_ENABLE_IF_STREAM(T)
0030 # define BOOST_IOSTREAMS_DISABLE_IF_STREAM(T)
0031 #endif
0032
0033 #endif