File indexing completed on 2025-01-18 09:38:48
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_IOSTREAMS_DETAIL_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
0009 #define BOOST_IOSTREAMS_DETAIL_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
0010
0011 #include <boost/config.hpp> // BOOST_STATIC_CONSANT.
0012 #include <boost/mpl/bool.hpp>
0013 #include <boost/type_traits/is_same.hpp>
0014
0015 namespace boost { namespace iostreams { namespace detail {
0016
0017 template<typename Device, typename U>
0018 struct forward_impl {
0019 BOOST_STATIC_CONSTANT(bool, value =
0020 ( !is_same< U, Device >::value &&
0021 !is_same< U, reference_wrapper<Device> >::value ));
0022 };
0023
0024 template<typename Device, typename U>
0025 struct forward
0026 : mpl::bool_<forward_impl<Device, U>::value>
0027 { };
0028
0029 } } }
0030
0031 #endif