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_PARAMETER_TYPES_HPP_INCLUDED
10 #define BOOST_FT_PARAMETER_TYPES_HPP_INCLUDED
12 #include <boost/blank.hpp>
13 #include <boost/mpl/if.hpp>
15 #include <boost/mpl/aux_/lambda_support.hpp>
17 #include <boost/mpl/pop_front.hpp>
19 #include <boost/function_types/is_callable_builtin.hpp>
20 #include <boost/function_types/components.hpp>
24 namespace function_types
26 using mpl::placeholders::_;
28 template< typename T, typename ClassTypeTransform = add_reference<_> >
29 struct parameter_types;
33 template<typename T, typename ClassTypeTransform>
34 struct parameter_types_impl
36 < typename function_types::components<T,ClassTypeTransform>::types
41 template<typename T, typename ClassTypeTransform> struct parameter_types
43 < function_types::is_callable_builtin<T>
44 , detail::parameter_types_impl<T,ClassTypeTransform>, boost::blank
47 BOOST_MPL_AUX_LAMBDA_SUPPORT(2,parameter_types,(T,ClassTypeTransform))