mirror of https://github.com/CGAL/cgal
macros to support C++20 concepts conditionally
(used in CDT_3 only, for the moment)
This commit is contained in:
parent
ac47f30cd8
commit
ca90296877
|
|
@ -476,6 +476,14 @@ namespace cpp11{
|
||||||
}//namespace cpp11
|
}//namespace cpp11
|
||||||
} //namespace CGAL
|
} //namespace CGAL
|
||||||
|
|
||||||
|
#if __cpp_lib_concepts >= 201806L
|
||||||
|
# define CGAL_CPP20_REQUIRE_CLAUSE(x) requires x
|
||||||
|
# define CGAL_TYPE_CONSTRAINT(x) x
|
||||||
|
#else
|
||||||
|
# define CGAL_CPP20_REQUIRE_CLAUSE(x)
|
||||||
|
# define CGAL_TYPE_CONSTRAINT(x) typename
|
||||||
|
#endif
|
||||||
|
|
||||||
// The fallthrough attribute
|
// The fallthrough attribute
|
||||||
// See for clang:
|
// See for clang:
|
||||||
// https://clang.llvm.org/docs/AttributeReference.html#statement-attributes
|
// https://clang.llvm.org/docs/AttributeReference.html#statement-attributes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue