1 /*=============================================================================
2 Copyright (c) 2007 Tobias Schwinger
4 Use modification and distribution are subject to the Boost Software
5 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt).
7 ==============================================================================*/
9 // No include guard - this file is included multiple times intentionally.
11 #include <boost/preprocessor/cat.hpp>
12 #include <boost/fusion/support/detail/as_fusion_element.hpp>
14 #if !defined(BOOST_FUSION_CLASS_TPL_NAME)
15 # error "BOOST_FUSION_CLASS_TPL_NAME undefined"
18 #define BOOST_FUSION_FUNC_NAME BOOST_PP_CAT(make_,BOOST_FUSION_CLASS_TPL_NAME)
20 namespace boost { namespace fusion
26 struct BOOST_FUSION_FUNC_NAME
28 typedef fusion::BOOST_FUSION_CLASS_TPL_NAME<
29 typename fusion::detail::as_fusion_element<F>::type > type;
34 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
35 inline typename result_of::BOOST_FUSION_FUNC_NAME<F>::type
36 BOOST_FUSION_FUNC_NAME(F const & f)
38 return typename result_of::BOOST_FUSION_FUNC_NAME<F>::type(f);
43 #undef BOOST_FUSION_CLASS_TPL_NAME
44 #undef BOOST_FUSION_FUNC_NAME