File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
include/boost/concept/detail Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,19 @@ struct requirement_<void(*)(Model)>
65
65
66
66
# endif
67
67
68
+ // Version check from https://svn.boost.org/trac/boost/changeset/82886
69
+ // (boost/static_assert.hpp)
70
+ #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
71
+ #define BOOST_CONCEPT_UNUSED_TYPEDEF __attribute__ ((unused))
72
+ #else
73
+ #define BOOST_CONCEPT_UNUSED_TYPEDEF /* */
74
+ #endif
75
+
68
76
# define BOOST_CONCEPT_ASSERT_FN ( ModelFnPtr ) \
69
77
typedef ::boost::concepts::detail::instantiate< \
70
78
&::boost::concepts::requirement_<ModelFnPtr>::failed> \
71
- BOOST_PP_CAT (boost_concept_check,__LINE__)
79
+ BOOST_PP_CAT (boost_concept_check,__LINE__) \
80
+ BOOST_CONCEPT_UNUSED_TYPEDEF
72
81
73
82
}}
74
83
You can’t perform that action at this time.
0 commit comments