1 /*=============================================================================
2 Copyright (c) 2005 Joel de Guzman
3 Copyright (c) 2005 Eric Niebler
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_END_IMPL_07172005_0828)
9 #define FUSION_END_IMPL_07172005_0828
11 #include <boost/mpl/if.hpp>
12 #include <boost/type_traits/is_const.hpp>
14 namespace boost
{ namespace fusion
20 template <typename Car
, typename Cdr
>
23 template <typename Cons
>
28 template <typename Tag
>
32 struct end_impl
<cons_tag
>
34 template <typename Sequence
>
37 typedef cons_iterator
<
38 typename
mpl::if_
<is_const
<Sequence
>, nil
const, nil
>::type
>