forked from boostorg/concept_check
Remove include of boost/parameter/aux_/parenthesized_type.hpp.
This commit is contained in:
@@ -5,12 +5,33 @@
|
|||||||
# define BOOST_CONCEPT_REQUIRES_DWA2006430_HPP
|
# define BOOST_CONCEPT_REQUIRES_DWA2006430_HPP
|
||||||
|
|
||||||
# include <boost/config.hpp>
|
# include <boost/config.hpp>
|
||||||
# include <boost/parameter/aux_/parenthesized_type.hpp>
|
|
||||||
# include <boost/concept/assert.hpp>
|
# include <boost/concept/assert.hpp>
|
||||||
# include <boost/preprocessor/seq/for_each.hpp>
|
# include <boost/preprocessor/seq/for_each.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
|
// unaryfunptr_arg_type from parameter/aux_/parenthesized_type.hpp
|
||||||
|
|
||||||
|
namespace ccheck_aux {
|
||||||
|
|
||||||
|
// A metafunction that transforms void(*)(T) -> T
|
||||||
|
template <class UnaryFunctionPointer>
|
||||||
|
struct unaryfunptr_arg_type;
|
||||||
|
|
||||||
|
template <class Arg>
|
||||||
|
struct unaryfunptr_arg_type<void(*)(Arg)>
|
||||||
|
{
|
||||||
|
typedef Arg type;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
struct unaryfunptr_arg_type<void(*)(void)>
|
||||||
|
{
|
||||||
|
typedef void type;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace ccheck_aux
|
||||||
|
|
||||||
// Template for use in handwritten assertions
|
// Template for use in handwritten assertions
|
||||||
template <class Model, class More>
|
template <class Model, class More>
|
||||||
struct requires_ : More
|
struct requires_ : More
|
||||||
@@ -29,7 +50,7 @@ struct _requires_
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <int check, class Result>
|
template <int check, class Result>
|
||||||
struct Requires_ : ::boost::parameter::aux::unaryfunptr_arg_type<Result>
|
struct Requires_ : ::boost::ccheck_aux::unaryfunptr_arg_type<Result>
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -42,7 +63,7 @@ struct Requires_ : ::boost::parameter::aux::unaryfunptr_arg_type<Result>
|
|||||||
#if defined(NDEBUG)
|
#if defined(NDEBUG)
|
||||||
|
|
||||||
# define BOOST_CONCEPT_REQUIRES(models, result) \
|
# define BOOST_CONCEPT_REQUIRES(models, result) \
|
||||||
typename ::boost::parameter::aux::unaryfunptr_arg_type<void(*)result>::type
|
typename ::boost::ccheck_aux::unaryfunptr_arg_type<void(*)result>::type
|
||||||
|
|
||||||
#elif BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
|
#elif BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
|
||||||
|
|
||||||
@@ -50,7 +71,7 @@ struct Requires_ : ::boost::parameter::aux::unaryfunptr_arg_type<Result>
|
|||||||
# define BOOST_CONCEPT_REQUIRES(models, result) \
|
# define BOOST_CONCEPT_REQUIRES(models, result) \
|
||||||
::boost::Requires_< \
|
::boost::Requires_< \
|
||||||
(0 BOOST_PP_SEQ_FOR_EACH(BOOST_CONCEPT_REQUIRES_, ~, models)), \
|
(0 BOOST_PP_SEQ_FOR_EACH(BOOST_CONCEPT_REQUIRES_, ~, models)), \
|
||||||
::boost::parameter::aux::unaryfunptr_arg_type<void(*)result> \
|
::boost::ccheck_aux::unaryfunptr_arg_type<void(*)result> \
|
||||||
>::type
|
>::type
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user