Skip to content

Commit bc759a6

Browse files
committed
Add missing #endif comments in P1206R7_ranges_to_<meow>
These were incorrectly removed by microsoft#4944.
1 parent 6d88bb5 commit bc759a6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

tests/std/tests/P1206R7_ranges_to_mappish/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ struct mappish_instantiator {
162162
assert(c6.get_allocator().state == 13);
163163
assert(ranges::is_permutation(c6, expected, any_pair_eq));
164164
}
165-
#endif
165+
#endif // ^^^ no workaround ^^^
166166
{
167167
std::same_as<T> auto c7 = R{some_pairs} | ranges::to<C>(Alloc{13});
168168
assert(c7.get_allocator().state == 13);

tests/std/tests/P1206R7_ranges_to_misc/test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ constexpr bool test_reservable() {
6262
assert(r.cap_ == ranges::size(some_ints));
6363
assert(r.reserved_ == ranges::size(some_ints));
6464
}
65-
#endif
65+
#endif // ^^^ no workaround ^^^
6666

6767
return true;
6868
}
@@ -100,7 +100,7 @@ constexpr bool test_common_constructible() {
100100
assert(c1.last_ == ranges::end(some_ints));
101101
assert(c1.args_ == 3);
102102
}
103-
#endif
103+
#endif // ^^^ no workaround ^^^
104104

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

121121
return true;
122122
}
@@ -315,7 +315,7 @@ constexpr void test_lwg4016_per_kind() {
315315
std::same_as<V> auto vec = std::views::empty<int> | ranges::to<V>(std::size_t{42}, std::allocator<int>{});
316316
assert(ranges::equal(vec, std::views::repeat(0, 42)));
317317
}
318-
#endif
318+
#endif // ^^^ no workaround ^^^
319319
{
320320
std::same_as<V> auto vec = ranges::to<V>(std::views::iota(0, 42), std::initializer_list<int>{-3, -2, -1});
321321
assert(ranges::equal(vec, std::views::iota(-3, 42)));

tests/std/tests/P1206R7_ranges_to_sequence/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ struct sequence_instantiator {
151151
assert(c6.get_allocator().state == 13);
152152
assert(ranges::equal(c6, meow));
153153
}
154-
#endif
154+
#endif // ^^^ no workaround ^^^
155155
{
156156
std::same_as<T> auto c7 = R{meow} | ranges::to<C>(Alloc{13});
157157
assert(c7.get_allocator().state == 13);

tests/std/tests/P1206R7_ranges_to_settish/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ struct settish_instantiator {
156156
assert(c6.get_allocator().state == 13);
157157
assert(ranges::is_permutation(c6, expected));
158158
}
159-
#endif
159+
#endif // ^^^ no workaround ^^^
160160
{
161161
std::same_as<T> auto c7 = R{some_ints} | ranges::to<C>(Alloc{13});
162162
assert(c7.get_allocator().state == 13);

0 commit comments

Comments
 (0)