8
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 11 Jul 2023
8 points (100.0% liked)
C++
1783 readers
4 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
Thank you. But why not just init the vector std::vector vect(56) And then resize 🧐
That vector constructor still requires a default constructor for the class of the object contained by the vector, so it's the same issue but different context.