/*============================================================================= Copyright (c) 2001-2014 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_RESULT_OF_10272014_0654) #define FUSION_RESULT_OF_10272014_0654 #include #if !(defined(BOOST_NO_CXX11_DECLTYPE) || defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)) #include #include #include #endif namespace boost { namespace fusion { namespace detail { // This is a temporary workaround for result_of before we make fusion fully // sfinae result_of friendy, which will require some heavy lifting for some // low level code. So far this is used only in the fold algorithm. This will // be removed once we overhaul fold. #if defined(BOOST_NO_CXX11_DECLTYPE) || defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) template struct result_of_with_decltype : boost::tr1_result_of {}; #else BOOST_MPL_HAS_XXX_TRAIT_DEF(result_type) BOOST_MPL_HAS_XXX_TEMPLATE_DEF(result) template struct result_of_with_decltype; template struct result_of_with_decltype : mpl::if_, detail::has_result >, boost::tr1_result_of, boost::detail::cpp0x_result_of >::type {}; #endif }}} #endif