Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2446R2: views::as_rvalue #3008

Merged
merged 13 commits into from
Aug 12, 2022
Prev Previous commit
Next Next commit
Comment updates: typo, implementation assumption.
StephanTLavavej committed Aug 11, 2022
commit 57655caeae2199815475ab98f13434099f75a5eb
4 changes: 2 additions & 2 deletions tests/std/tests/P2446R2_views_as_rvalue/test.cpp
Original file line number Diff line number Diff line change
@@ -409,8 +409,8 @@ void test_example_from_p2446r2() {
ranges::copy(words | views::as_rvalue, back_inserter(new_words)); // moves each string from words into new_words

assert(ranges::equal(new_words, pattern));
assert(words.size() == pattern.size()); // size of words in preserved
assert(ranges::all_of(words, ranges::empty)); // all strings from words are empty
assert(words.size() == pattern.size()); // size of words is preserved
assert(ranges::all_of(words, ranges::empty)); // all strings from words are empty (implementation assumption)
}

int main() {