this post was submitted on 13 May 2024
4 points (61.1% liked)

C++

1723 readers
1 users here now

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

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lysdexic@programming.dev 0 points 4 months ago (1 children)

Naked pointers are just too stupid for modern C++ ;)

Anyone who works on real-world production software written in C++ knows for a fact that pointers are a reality.

Also, there are plenty of frameworks who employ their own memory management frameworks, and raw pointers are perfectly fine in that context. For example, Qt uses raw pointers extensively because It's object system implements an object ownership system where each object can have child and parents, and you can simply invoke deleteLater() to free the whole dependency tree when you no longer need it.

[–] vzq@lemmy.blahaj.zone 3 points 4 months ago* (last edited 4 months ago)

Your reply is an amazing mix of condescension and not getting the point.

I’m having it framed.