• Arkaniol
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

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

    • KRAW@linux.community
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      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.