@@ -22,8 +22,8 @@ static void bm_shift_left_random_access_range_with_sized_sentinel(benchmark::Sta
2222 auto begin = random_access_iterator (a.data ());
2323 auto end = random_access_iterator (a.data () + a.size ());
2424
25- static_assert (std::sized_sentinel_for<decltype (end), decltype (begin)>);
2625 static_assert (std::random_access_iterator<decltype (begin)>);
26+ static_assert (std::sized_sentinel_for<decltype (end), decltype (begin)>);
2727
2828 benchmark::DoNotOptimize (std::ranges::shift_left (begin, end, a.size () / 2 ));
2929 }
@@ -39,8 +39,8 @@ static void bm_shift_left_forward_range_with_sized_sentinel(benchmark::State& st
3939 auto begin = forward_iterator (a.data ());
4040 auto end = sized_sentinel (forward_iterator (a.data () + a.size ()));
4141
42- static_assert (std::sized_sentinel_for<decltype (end), decltype (begin)>);
4342 static_assert (!std::random_access_iterator<decltype (begin)>);
43+ static_assert (std::sized_sentinel_for<decltype (end), decltype (begin)>);
4444
4545 benchmark::DoNotOptimize (std::ranges::shift_left (begin, end, a.size () / 2 ));
4646 }
@@ -56,8 +56,8 @@ static void bm_shift_left_forward_range(benchmark::State& state) {
5656 auto begin = forward_iterator (a.data ());
5757 auto end = forward_iterator (a.data () + a.size ());
5858
59- static_assert (!std::sized_sentinel_for<decltype (end), decltype (begin)>);
6059 static_assert (!std::random_access_iterator<decltype (begin)>);
60+ static_assert (!std::sized_sentinel_for<decltype (end), decltype (begin)>);
6161
6262 benchmark::DoNotOptimize (std::ranges::shift_left (begin, end, a.size () / 2 ));
6363 }
0 commit comments