forked from boostorg/concept_check
Concept: Remove obsolete GCC version check.
[SVN r86107]
This commit is contained in:
17
include/boost/concept/detail/concept_def.hpp
Executable file → Normal file
17
include/boost/concept/detail/concept_def.hpp
Executable file → Normal file
@@ -15,22 +15,6 @@
|
|||||||
//
|
//
|
||||||
// Also defines an equivalent SomeNameConcept for backward compatibility.
|
// Also defines an equivalent SomeNameConcept for backward compatibility.
|
||||||
// Maybe in the next release we can kill off the "Concept" suffix for good.
|
// Maybe in the next release we can kill off the "Concept" suffix for good.
|
||||||
#if BOOST_WORKAROUND(__GNUC__, <= 3)
|
|
||||||
# define BOOST_concept(name, params) \
|
|
||||||
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
|
||||||
struct name; /* forward declaration */ \
|
|
||||||
\
|
|
||||||
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
|
||||||
struct BOOST_PP_CAT(name,Concept) \
|
|
||||||
: name< BOOST_PP_SEQ_ENUM(params) > \
|
|
||||||
{ \
|
|
||||||
/* at least 2.96 and 3.4.3 both need this */ \
|
|
||||||
BOOST_PP_CAT(name,Concept)(); \
|
|
||||||
}; \
|
|
||||||
\
|
|
||||||
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
|
||||||
struct name
|
|
||||||
#else
|
|
||||||
# define BOOST_concept(name, params) \
|
# define BOOST_concept(name, params) \
|
||||||
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
||||||
struct name; /* forward declaration */ \
|
struct name; /* forward declaration */ \
|
||||||
@@ -43,7 +27,6 @@
|
|||||||
\
|
\
|
||||||
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) > \
|
||||||
struct name
|
struct name
|
||||||
#endif
|
|
||||||
|
|
||||||
// Helper for BOOST_concept, above.
|
// Helper for BOOST_concept, above.
|
||||||
# define BOOST_CONCEPT_typename(r, ignored, index, t) \
|
# define BOOST_CONCEPT_typename(r, ignored, index, t) \
|
||||||
|
Reference in New Issue
Block a user