1 point

Thank you. But why not just init the vector std::vector vect(56) And then resize 🧐

permalink
report
reply
1 point

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.

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
reply
1 point

I saw the article on my mastodon feed. When it’s interesting I usually post it here

permalink
report
parent
reply

C++

!cpp@programming.dev

Create post

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++.

Community stats

  • 22

    Monthly active users

  • 262

    Posts

  • 519

    Comments