SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lysdexic@programming.devM to C++@programming.devEnglish · 1 year ago

How to avoid one C++ foot gun

pboyd.io

external-link
message-square
15
fedilink
4
external-link

How to avoid one C++ foot gun

pboyd.io

lysdexic@programming.devM to C++@programming.devEnglish · 1 year ago
message-square
15
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.
  • rasensprenger@feddit.de
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Exactly, raw pointers are very rarely the way to go

C++@programming.dev

cpp@programming.dev

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: !cpp@programming.dev

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
  • 12 users / week
  • 29 users / month
  • 193 users / 6 months
  • 32 local subscribers
  • 2K subscribers
  • 288 Posts
  • 603 Comments
  • Modlog
  • mods:
  • farados@vlemmy.net
  • Nihili0@programming.dev
  • lysdexic@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org