mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08:00
mdbx++: use C++20 concepts only when __cpp_lib_concepts >= 202002
.
This commit is contained in:
parent
cdfaad18a2
commit
280fa99831
9
mdbx.h++
9
mdbx.h++
@ -224,17 +224,12 @@
|
|||||||
|
|
||||||
#ifndef MDBX_HAVE_CXX20_CONCEPTS
|
#ifndef MDBX_HAVE_CXX20_CONCEPTS
|
||||||
#if defined(DOXYGEN) || \
|
#if defined(DOXYGEN) || \
|
||||||
(defined(__cpp_concepts) && __cpp_concepts >= 201907L && \
|
(defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L)
|
||||||
(!defined(__clang__) || __has_include(<concepts>) || \
|
|
||||||
(defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L)))
|
|
||||||
#if __has_include(<concepts>) || \
|
|
||||||
(defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L)
|
|
||||||
#include <concepts>
|
#include <concepts>
|
||||||
#endif /* <concepts> */
|
|
||||||
#define MDBX_HAVE_CXX20_CONCEPTS 1
|
#define MDBX_HAVE_CXX20_CONCEPTS 1
|
||||||
#else
|
#else
|
||||||
#define MDBX_HAVE_CXX20_CONCEPTS 0
|
#define MDBX_HAVE_CXX20_CONCEPTS 0
|
||||||
#endif
|
#endif /* <concepts> */
|
||||||
#endif /* MDBX_HAVE_CXX20_CONCEPTS */
|
#endif /* MDBX_HAVE_CXX20_CONCEPTS */
|
||||||
|
|
||||||
#ifndef MDBX_CXX20_CONCEPT
|
#ifndef MDBX_CXX20_CONCEPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user