1 /*=============================================================================
2 Copyright (c) 2001-2006 Joel de Guzman
3 Copyright (c) 2005-2006 Dan Marsden
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #if !defined(FUSION_CONVERT_IMPL_09232005_1215)
9 #define FUSION_CONVERT_IMPL_09232005_1215
11 #include <boost/fusion/container/list/cons.hpp>
12 #include <boost/fusion/container/list/detail/build_cons.hpp>
13 #include <boost/fusion/sequence/intrinsic/empty.hpp>
14 #include <boost/fusion/sequence/intrinsic/begin.hpp>
15 #include <boost/fusion/sequence/intrinsic/end.hpp>
17 namespace boost
{ namespace fusion
27 struct convert_impl
<cons_tag
>
29 template <typename Sequence
>
34 typename
result_of::begin
<Sequence
>::type
35 , typename
result_of::end
<Sequence
>::type
39 typedef typename
build_cons::type type
;
44 return build_cons::call(fusion::begin(seq
), fusion::end(seq
));