1 /*=============================================================================
2 Copyright (c) 2012-2014 Kohei Takahashi
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_FUSION_CONVERT_IMPL_10172012_0940)
8 #define BOOST_FUSION_CONVERT_IMPL_10172012_0940
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/adapted/std_tuple/detail/build_std_tuple.hpp>
12 #include <boost/fusion/sequence/intrinsic/begin.hpp>
13 #include <boost/fusion/sequence/intrinsic/end.hpp>
15 namespace boost { namespace fusion
25 struct convert_impl<std_tuple_tag>
27 template <typename Sequence>
30 typedef detail::build_std_tuple<
31 typename result_of::begin<Sequence>::type
32 , typename result_of::end<Sequence>::type
35 typedef typename gen::type type;
37 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
41 return gen::call(begin(seq), end(seq));