Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:48

0001 // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
0002 // (C) Copyright 2003-2007 Jonathan Turkanis
0003 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
0005 
0006 // See http://www.boost.org/libs/iostreams for documentation.
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 } } } // End namespaces detail, iostreams, boost.
0030 
0031 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED