forked from boostorg/concept_check
Use BOOST_ATTRIBUTE_UNUSED from boost/config
This commit is contained in:
committed by
Ahmed Charles
parent
bb9257a37e
commit
bdcd06c4cc
@ -4,6 +4,7 @@
|
|||||||
#ifndef BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP
|
#ifndef BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP
|
||||||
# define BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP
|
# define BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP
|
||||||
|
|
||||||
|
# include <boost/config.hpp>
|
||||||
# include <boost/preprocessor/cat.hpp>
|
# include <boost/preprocessor/cat.hpp>
|
||||||
# include <boost/concept/detail/backward_compatibility.hpp>
|
# include <boost/concept/detail/backward_compatibility.hpp>
|
||||||
|
|
||||||
@ -65,19 +66,11 @@ struct requirement_<void(*)(Model)>
|
|||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
// Version check from https://svn.boost.org/trac/boost/changeset/82886
|
|
||||||
// (boost/static_assert.hpp)
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
|
|
||||||
#define BOOST_CONCEPT_UNUSED_TYPEDEF __attribute__((unused))
|
|
||||||
#else
|
|
||||||
#define BOOST_CONCEPT_UNUSED_TYPEDEF /**/
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \
|
# define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \
|
||||||
typedef ::boost::concepts::detail::instantiate< \
|
typedef ::boost::concepts::detail::instantiate< \
|
||||||
&::boost::concepts::requirement_<ModelFnPtr>::failed> \
|
&::boost::concepts::requirement_<ModelFnPtr>::failed> \
|
||||||
BOOST_PP_CAT(boost_concept_check,__LINE__) \
|
BOOST_PP_CAT(boost_concept_check,__LINE__) \
|
||||||
BOOST_CONCEPT_UNUSED_TYPEDEF
|
BOOST_ATTRIBUTE_UNUSED
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user