gracicot@programming.dev to C++@programming.dev · 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-square2fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1external-linkWhy does the compiler complain about a missing constructor when I'm just resizing my std::vector to a smaller size?devblogs.microsoft.comgracicot@programming.dev to C++@programming.dev · 1 year agomessage-square2fedilink
minus-squareKRAW@linux.communitylinkfedilinkEnglisharrow-up1·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.
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.