programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
gracicot to C++ · 2 年前

Why does the compiler complain about a missing constructor when I'm just resizing my std::vector to a smaller size?

devblogs.microsoft.com

external-link
message-square
3
link
fedilink
8
external-link

Why 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++ · 2 年前
message-square
3
link
fedilink
Why does the compiler complain about a missing constructor when I'm just resizing my std::vector to a smaller size? - The Old New Thing
devblogs.microsoft.com
external-link
The compiler doesn't know that you're shrinking.
  • rmam
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 年前

    deleted by creator

    • gracicotOP
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

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

C++

cpp

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

The center for all discussion and news regarding C++.

Rules

  • Respect instance rules.
  • Don’t be a jerk.
  • Please keep all posts related to C++.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 4 users / week
  • 76 users / month
  • 221 users / 6 months
  • 532 local subscribers
  • 2.12K subscribers
  • 317 Posts
  • 663 Comments
  • Modlog
  • mods:
  • lysdexic
  • farados@vlemmy.net
  • Nihili0
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org