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
Allan Sandfeld Jensen 2022-02-05 14:39:25 +01:00 committed by Marc Mutz
parent c6d221f0a9
commit 23181340ca
1 changed files with 1 additions and 1 deletions

View File

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