Skip to content

Commit 112c95e

Browse files
committed
Use __cpp_lib_containers_ranges instead of TEST_STD_VER to increase portability
1 parent cf79e2c commit 112c95e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/test/benchmarks/containers/sequence/sequence_container_benchmarks.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "benchmark/benchmark.h"
2323
#include "test_iterators.h"
24-
#include "test_macros.h"
2524
#include "../../GenerateInput.h"
2625

2726
namespace support {
@@ -102,7 +101,7 @@ void sequence_container_benchmarks(std::string container) {
102101
}
103102
});
104103

105-
#if TEST_STD_VER >= 23
104+
#if defined(__cpp_lib_containers_ranges) && __cpp_lib_containers_ranges >= 202202L
106105
for (auto gen : generators)
107106
bench("ctor(Range)" + tostr(gen), [gen](auto& st) {
108107
auto const size = st.range(0);

0 commit comments

Comments
 (0)