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

How to avoid one C++ foot gun

pboyd.io

external-link
message-square
15
link
fedilink
5
external-link

How to avoid one C++ foot gun

pboyd.io

lysdexicM to C++English · 2 years ago
message-square
15
link
fedilink
C++'s implicit copy and move behavior offer an excellent way to shoot yourself in the foot. Here's an example of how they can create a double-free and how to avoid it.
  • lysdexicOPM
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    You’re making a very poor example by subscribing to [email protected]

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.

  • 5 users / day
  • 36 users / week
  • 73 users / month
  • 252 users / 6 months
  • 538 local subscribers
  • 2.15K subscribers
  • 333 Posts
  • 668 Comments
  • Modlog
  • mods:
  • lysdexic
  • farados@vlemmy.net
  • Nihili0
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org