Rev | Line | |
---|
[857] | 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_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
|
---|
| 8 | #define BOOST_IOSTREAMS_DETAIL_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
|
---|
| 9 |
|
---|
| 10 | #include <boost/config.hpp> // BOOST_STATIC_CONSANT.
|
---|
| 11 | #include <boost/mpl/bool.hpp>
|
---|
| 12 | #include <boost/type_traits/is_same.hpp>
|
---|
| 13 |
|
---|
| 14 | namespace boost { namespace iostreams { namespace detail {
|
---|
| 15 |
|
---|
| 16 | template<typename Device, typename U>
|
---|
| 17 | struct forward_impl {
|
---|
| 18 | BOOST_STATIC_CONSTANT(bool, value =
|
---|
| 19 | ( !is_same< U, Device >::value &&
|
---|
| 20 | !is_same< U, reference_wrapper<Device> >::value ));
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | template<typename Device, typename U>
|
---|
| 24 | struct forward
|
---|
| 25 | : mpl::bool_<forward_impl<Device, U>::value>
|
---|
| 26 | { };
|
---|
| 27 |
|
---|
| 28 | } } } // End namespaces detail, iostreams, boost.
|
---|
| 29 |
|
---|
| 30 | #endif // #ifndef BOOST_IOSTREAMS_DETAIL_BROKEN_OVERLOAD_RESOLUTION_HPP_INCLUDED
|
---|
Note: See
TracBrowser
for help on using the repository browser.