diff options
Diffstat (limited to 'boost/parameter/aux_/parenthesized_type.hpp')
-rw-r--r-- | boost/parameter/aux_/parenthesized_type.hpp | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/boost/parameter/aux_/parenthesized_type.hpp b/boost/parameter/aux_/parenthesized_type.hpp index 69e7a237d4..863e062e90 100644 --- a/boost/parameter/aux_/parenthesized_type.hpp +++ b/boost/parameter/aux_/parenthesized_type.hpp @@ -1,35 +1,12 @@ -// Copyright David Abrahams 2006. 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) -#ifndef BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP -# define BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP - -# include <boost/config.hpp> -# include <boost/detail/workaround.hpp> - -namespace boost { namespace parameter { namespace aux { +// Copyright David Abrahams 2006. +// 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) -// A macro that takes a parenthesized C++ type name (T) and transforms -// it into an un-parenthesized type expression equivalent to T. -# define BOOST_PARAMETER_PARENTHESIZED_TYPE(x) \ - boost::parameter::aux::unaryfunptr_arg_type< void(*)x >::type - -// A metafunction that transforms void(*)(T) -> T -template <class UnaryFunctionPointer> -struct unaryfunptr_arg_type; +#ifndef BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP +#define BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP -template <class Arg> -struct unaryfunptr_arg_type<void(*)(Arg)> -{ - typedef Arg type; -}; +#include <boost/parameter/aux_/preprocessor/impl/parenthesized_type.hpp> -template <> -struct unaryfunptr_arg_type<void(*)(void)> -{ - typedef void type; -}; - -}}} // namespace boost::parameter::aux +#endif // include guard -#endif // BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP |