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_VALUE_TYPE_HPP_INCLUDED
|
---|
| 8 | #define BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED
|
---|
| 9 |
|
---|
| 10 | #if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
---|
| 11 | # pragma once
|
---|
| 12 | #endif
|
---|
| 13 |
|
---|
| 14 | #include <boost/iostreams/traits.hpp>
|
---|
| 15 | #include <boost/mpl/if.hpp>
|
---|
| 16 |
|
---|
| 17 | namespace boost { namespace iostreams { namespace detail {
|
---|
| 18 |
|
---|
| 19 | template<typename T>
|
---|
| 20 | struct param_type {
|
---|
| 21 | typedef typename mpl::if_<is_std_io<T>, T&, const T&>::type type;
|
---|
| 22 | };
|
---|
| 23 |
|
---|
| 24 | template<typename T>
|
---|
| 25 | struct value_type {
|
---|
| 26 | typedef typename mpl::if_<is_std_io<T>, T&, T>::type type;
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | } } } // End namespaces detail, iostreams, boost.
|
---|
| 30 |
|
---|
| 31 | #endif // #ifndef BOOST_IOSTREAMS_DETAIL_VALUE_TYPE_HPP_INCLUDED //-----------//
|
---|
Note: See
TracBrowser
for help on using the repository browser.