Ugly, not-to-be-pushed sucking in of all of Boost to get windows to work.
[dyninst.git] / external / boost / iostreams / detail / enable_if_stream.hpp
1 // (C) Copyright Jonathan Turkanis 2003.
2 // Distributed under the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4
5 // See http://www.boost.org/libs/iostreams for documentation.
6
7 #ifndef BOOST_IOSTREAMS_DETAIL_ENABLE_IF_STREAM_HPP_INCLUDED
8 #define BOOST_IOSTREAMS_DETAIL_ENABLE_IF_STREAM_HPP_INCLUDED
9
10 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
11 # pragma once
12 #endif              
13
14 #include <boost/config.hpp>                // BOOST_NO_SFINAE.
15 #include <boost/utility/enable_if.hpp>                  
16 #include <boost/iostreams/traits_fwd.hpp>  // is_std_io.
17
18 #ifndef BOOST_NO_SFINAE
19 # define BOOST_IOSTREAMS_ENABLE_IF_STREAM(T) \
20     , typename boost::enable_if< boost::iostreams::is_std_io<T> >::type* = 0  \
21     /**/
22 # define BOOST_IOSTREAMS_DISABLE_IF_STREAM(T) \
23     , typename boost::disable_if< boost::iostreams::is_std_io<T> >::type* = 0 \
24     /**/
25 #else 
26 # define BOOST_IOSTREAMS_ENABLE_IF_STREAM(T)
27 # define BOOST_IOSTREAMS_DISABLE_IF_STREAM(T)
28 #endif
29
30 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_ENABLE_IF_STREAM_HPP_INCLUDED