macros to support C++20 concepts conditionally

(used in CDT_3 only, for the moment)
This commit is contained in:
Laurent Rineau 2024-04-26 14:48:19 +02:00
parent ac47f30cd8
commit ca90296877
1 changed files with 8 additions and 0 deletions

View File

@ -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