12345678910111213141516171819202122232425262728293031 |
- #ifndef BOOST_CONCEPT_CHECK_HAS_CONSTRAINTS_DWA2006429_HPP
- # define BOOST_CONCEPT_CHECK_HAS_CONSTRAINTS_DWA2006429_HPP
- namespace boost { namespace concept_checking {
- typedef char yes;
- typedef char (&no)[2];
- template <class Model, void (Model::*)()>
- struct wrap_constraints {};
-
- template <class Model>
- inline yes has_constraints_(Model*, wrap_constraints<Model,&Model::constraints>* = 0);
- inline no has_constraints_(...);
- template <class Model>
- struct has_constraints
- {
- BOOST_STATIC_CONSTANT(
- bool
- , value = sizeof( concept_checking::has_constraints_((Model*)0) ) == 1 );
- };
- }}
- #endif
|