2 // Copyright Oliver Kowalke 2014.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_COROUTINES2_DETAIL_DECAY_COPY_H
8 #define BOOST_COROUTINES2_DETAIL_DECAY_COPY_H
10 #include <type_traits>
12 #include <boost/config.hpp>
14 #include <boost/context/detail/config.hpp>
16 #ifdef BOOST_HAS_ABI_HEADERS
17 # include BOOST_ABI_PREFIX
21 namespace coroutines2 {
24 template< typename T >
25 typename std::decay< T >::type
27 return std::forward< T >( t);
32 #ifdef BOOST_HAS_ABI_HEADERS
33 #include BOOST_ABI_SUFFIX
36 #endif // BOOST_COROUTINES2_DETAIL_DECAY_COPY_H