Skip to content

Commit 4597b6c

Browse files
committed
Only compile zip_view tests when zip is available
1 parent 978afc1 commit 4597b6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/cxx_23_tests.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#include <gfx/timsort.hpp>
1313
#include "test_helpers.hpp"
1414

15+
16+
#if defined(__cpp_lib_ranges_zip)
17+
1518
TEST_CASE( "support for std::ranges::views::zip" )
1619
{
1720
SECTION( "zip two small collections" ) {
@@ -45,3 +48,5 @@ TEST_CASE( "support for std::ranges::views::zip" )
4548
CHECK( std::ranges::is_sorted(deq, std::ranges::greater{}) );
4649
}
4750
}
51+
52+
#endif // defined(__cpp_lib_ranges_zip)

0 commit comments

Comments
 (0)