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

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

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