@gracicot to C++ • 1 year agoWhy does the compiler complain about a missing constructor when I'm just resizing my std::vector to a smaller size?devblogs.microsoft.comexternal-linkmessage-square3arrow-up18arrow-down10
arrow-up18arrow-down1external-linkWhy does the compiler complain about a missing constructor when I'm just resizing my std::vector to a smaller size?devblogs.microsoft.com@gracicot to C++ • 1 year agomessage-square3
minus-square@Arkaniollink1•1 year agoThank you. But why not just init the vector std::vector vect(56) And then resize 🧐
minus-square@[email protected]linkfedilinkEnglish1•1 year agoThat 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.
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.