1 // Copyright David Abrahams 2006. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #ifndef BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP
5 # define BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP
7 # include <boost/config.hpp>
8 # include <boost/detail/workaround.hpp>
10 namespace boost { namespace parameter { namespace aux {
12 // A macro that takes a parenthesized C++ type name (T) and transforms
13 // it into an un-parenthesized type expression equivalent to T.
14 # define BOOST_PARAMETER_PARENTHESIZED_TYPE(x) \
15 boost::parameter::aux::unaryfunptr_arg_type< void(*)x >::type
17 // A metafunction that transforms void(*)(T) -> T
18 template <class UnaryFunctionPointer>
19 struct unaryfunptr_arg_type;
22 struct unaryfunptr_arg_type<void(*)(Arg)>
28 struct unaryfunptr_arg_type<void(*)(void)>
33 }}} // namespace boost::parameter::aux
35 #endif // BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP