Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2011 Joel de Guzman Chris@16: Copyright (c) 2006 Dan Marsden Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: #if !defined (BOOST_FUSION_PAIR_TIE_20060812_2058) Chris@16: #define BOOST_FUSION_PAIR_TIE_20060812_2058 Chris@16: Chris@101: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace fusion { Chris@16: Chris@16: template Chris@16: struct pair; Chris@16: Chris@16: namespace result_of Chris@16: { Chris@16: template Chris@16: struct pair_tie Chris@16: { Chris@16: typedef fusion::pair type; Chris@16: }; Chris@16: } Chris@16: Chris@16: template Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: typename disable_if, typename result_of::pair_tie::type>::type Chris@16: pair_tie(T& t) Chris@16: { Chris@16: return typename result_of::pair_tie::type(t); Chris@16: } Chris@16: Chris@16: template Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: typename result_of::pair_tie::type Chris@16: pair_tie(T const& t) Chris@16: { Chris@16: return typename result_of::pair_tie::type(t); Chris@16: } Chris@16: }} Chris@16: Chris@16: #endif