Skip to content

Commit 3006f13

Browse files
committed
Addressing @alexfh's feedback.
1 parent 7f2beae commit 3006f13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.intersection/set_intersection_complexity.pass.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@
4343

4444
#include "test_iterators.h"
4545

46-
// debug mode provides no complexity guarantees, testing them would be a waste of effort
47-
// but we still want to run this test, to ensure we don't trigger any assertions
46+
// Debug mode provides no complexity guarantees, testing them would be a waste of effort.
4847
#ifdef _LIBCPP_HARDENING_MODE_DEBUG
49-
# define ASSERT_COMPLEXITY(expression)
48+
# define ASSERT_COMPLEXITY(expression) (void)(expression)
5049
#else
5150
# define ASSERT_COMPLEXITY(expression) assert(expression)
5251
#endif
@@ -306,7 +305,7 @@ constexpr bool testComplexityBasic() {
306305
std::array<int, 5> r2{2, 4, 6, 8, 10};
307306
std::array<int, 0> expected{};
308307

309-
[[maybe_unused]] const std::size_t maxOperation = 2 * (r1.size() + r2.size()) - 1;
308+
const std::size_t maxOperation = 2 * (r1.size() + r2.size()) - 1;
310309

311310
// std::set_intersection
312311
{

0 commit comments

Comments
 (0)