KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lysdexic@programming.devM to C++@programming.devEnglish · 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

lysdexic@programming.devM to C++@programming.devEnglish · 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.
  • rasensprenger@feddit.de
    link
    fedilink
    arrow-up
    3
    ·
    2 years 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.

  • 2 users / day
  • 28 users / week
  • 9 users / month
  • 181 users / 6 months
  • 2 local subscribers
  • 2.15K subscribers
  • 330 Posts
  • 552 Comments
  • Modlog
  • mods:
  • lysdexic@programming.dev
  • Nihili0@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org