this post was submitted on 22 May 2025
5 points (85.7% liked)

C++

2007 readers
3 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] bunitor 2 points 1 week ago (2 children)

honest question: what's the point of this? how is this better than std::ranges::to?

[–] wosrediinanatour@mastodon.social 1 points 1 week ago (1 children)

@bunitor @cm0002 And wonder what would be bad with a new constructor std::vector{view}? This would be short.

[–] bunitor 1 points 1 week ago

oh no, that makes sense. yet another single-argument constructor for vector would be an ambiguity nightmare