tst_QContainerApiSymmetry: fix incorrect P1115 detection
The value of __cplusplus has nothing to do with whether the library implements wg21.link/P1115 (libstdc++ even before C++20) or not (libc++, even in C++20). Use the idiomatic check (#if defined(foo) && foo >= x) instead, fixing the Android build. Pick-to: 6.3 6.2 Change-Id: I11bcefe455a1f13865c15d4beecbd3fe32115328 Reviewed-by: Marc Mutz <marc.mutz@qt.io>bb10
parent
c6d221f0a9
commit
23181340ca
|
|
@ -47,7 +47,7 @@
|
|||
#include <unordered_set>
|
||||
#include <unordered_map>
|
||||
|
||||
#if __cplusplus >= 202002L && defined(__cpp_lib_erase_if)
|
||||
#if defined(__cpp_lib_erase_if) && __cpp_lib_erase_if >= 202002L
|
||||
# define STDLIB_HAS_UNIFORM_ERASURE
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue