2 // (C) Copyright Tobias Schwinger
4 // Use modification and distribution are subject to the boost Software License,
5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
7 //------------------------------------------------------------------------------
9 #ifndef BOOST_FT_DETAIL_TO_SEQUENCE_HPP_INCLUDED
10 #define BOOST_FT_DETAIL_TO_SEQUENCE_HPP_INCLUDED
12 #include <boost/mpl/eval_if.hpp>
13 #include <boost/mpl/identity.hpp>
14 #include <boost/mpl/is_sequence.hpp>
15 #include <boost/mpl/placeholders.hpp>
16 #include <boost/type_traits/add_reference.hpp>
18 #include <boost/function_types/is_callable_builtin.hpp>
20 namespace boost { namespace function_types { namespace detail {
22 // wrap first arguments in components, if callable builtin type
28 < is_callable_builtin<T>
29 , to_sequence< components<T> >
35 // reduce template instantiations, if possible
36 template<typename T, typename U>
37 struct to_sequence< components<T,U> >
39 typedef typename components<T,U>::types type;
42 } } } // namespace ::boost::function_types::detail