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

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 years ago
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 years ago

    deleted by creator

    • gracicotOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      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.

  • 8 users / day
  • 22 users / week
  • 56 users / month
  • 202 users / 6 months
  • 515 local subscribers
  • 2.02K subscribers
  • 295 Posts
  • 623 Comments
  • Modlog
  • mods:
  • lysdexic
  • farados@vlemmy.net
  • Nihili0
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org