/*============================================================================= Copyright (c) 2001-2011 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_BUILD_CONS_09232005_1222) #define FUSION_BUILD_CONS_09232005_1222 #include #include #include #include #include namespace boost { namespace fusion { namespace detail { template < typename First , typename Last , bool is_empty = result_of::equal_to::value> struct build_cons; template struct build_cons { typedef nil type; static nil call(First const&, Last const&) { return nil(); } }; template struct build_cons { typedef build_cons::type, Last> next_build_cons; typedef cons< typename result_of::value_of::type , typename next_build_cons::type> type; static type call(First const& f, Last const& l) { typename result_of::value_of::type v = *f; return type(v, next_build_cons::call(fusion::next(f), l)); } }; }}} #endif