Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

3 replies

programming.dev

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

1

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.

1

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

1

You reached the end