mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-06-15 21:48:51 +00:00
mdbx++: проверка __cpp_concepts >= 202002
для использования концептов C++ (backport).
This commit is contained in:
parent
c457804fad
commit
5f37ea60d2
2
mdbx.h++
2
mdbx.h++
@ -243,7 +243,7 @@
|
|||||||
#endif /* MDBX_CXX20_UNLIKELY */
|
#endif /* MDBX_CXX20_UNLIKELY */
|
||||||
|
|
||||||
#ifndef MDBX_HAVE_CXX20_CONCEPTS
|
#ifndef MDBX_HAVE_CXX20_CONCEPTS
|
||||||
#if defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L
|
#if defined(__cpp_concepts) && __cpp_concepts >= 202002L && defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L
|
||||||
#include <concepts>
|
#include <concepts>
|
||||||
#define MDBX_HAVE_CXX20_CONCEPTS 1
|
#define MDBX_HAVE_CXX20_CONCEPTS 1
|
||||||
#elif defined(DOXYGEN)
|
#elif defined(DOXYGEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user