Skip to content

Commit

Permalink
Add missing #endif comments in P1206R7_ranges_to_<meow>
Browse files Browse the repository at this point in the history
These were incorrectly removed by microsoft#4944.
  • Loading branch information
CaseyCarter committed Sep 10, 2024
1 parent 6d88bb5 commit bc759a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/std/tests/P1206R7_ranges_to_mappish/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ struct mappish_instantiator {
assert(c6.get_allocator().state == 13);
assert(ranges::is_permutation(c6, expected, any_pair_eq));
}
#endif
#endif // ^^^ no workaround ^^^
{
std::same_as<T> auto c7 = R{some_pairs} | ranges::to<C>(Alloc{13});
assert(c7.get_allocator().state == 13);
Expand Down
8 changes: 4 additions & 4 deletions tests/std/tests/P1206R7_ranges_to_misc/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ constexpr bool test_reservable() {
assert(r.cap_ == ranges::size(some_ints));
assert(r.reserved_ == ranges::size(some_ints));
}
#endif
#endif // ^^^ no workaround ^^^

return true;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ constexpr bool test_common_constructible() {
assert(c1.last_ == ranges::end(some_ints));
assert(c1.args_ == 3);
}
#endif
#endif // ^^^ no workaround ^^^

// Verify that more than one argument can be passed after the range:
{
Expand All @@ -116,7 +116,7 @@ constexpr bool test_common_constructible() {
assert(c3.last_ == ranges::end(some_ints));
assert(c3.args_ == 4);
}
#endif
#endif // ^^^ no workaround ^^^

return true;
}
Expand Down Expand Up @@ -315,7 +315,7 @@ constexpr void test_lwg4016_per_kind() {
std::same_as<V> auto vec = std::views::empty<int> | ranges::to<V>(std::size_t{42}, std::allocator<int>{});
assert(ranges::equal(vec, std::views::repeat(0, 42)));
}
#endif
#endif // ^^^ no workaround ^^^
{
std::same_as<V> auto vec = ranges::to<V>(std::views::iota(0, 42), std::initializer_list<int>{-3, -2, -1});
assert(ranges::equal(vec, std::views::iota(-3, 42)));
Expand Down
2 changes: 1 addition & 1 deletion tests/std/tests/P1206R7_ranges_to_sequence/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct sequence_instantiator {
assert(c6.get_allocator().state == 13);
assert(ranges::equal(c6, meow));
}
#endif
#endif // ^^^ no workaround ^^^
{
std::same_as<T> auto c7 = R{meow} | ranges::to<C>(Alloc{13});
assert(c7.get_allocator().state == 13);
Expand Down
2 changes: 1 addition & 1 deletion tests/std/tests/P1206R7_ranges_to_settish/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct settish_instantiator {
assert(c6.get_allocator().state == 13);
assert(ranges::is_permutation(c6, expected));
}
#endif
#endif // ^^^ no workaround ^^^
{
std::same_as<T> auto c7 = R{some_ints} | ranges::to<C>(Alloc{13});
assert(c7.get_allocator().state == 13);
Expand Down

0 comments on commit bc759a6

Please sign in to comment.