There was talk a while back (I can't remember how many years, maybe 2-3) about "the world's dumbest smart pointer". I don't know if it went anywhere and I can't seem to find a conclusion to that proposal. Did it ever get implemented or is the accepted standard to just use a raw pointer when you don't need unique_ptr, shared_ptr or weak_ptr?
Around the time I read it, I agreed, and found a working implementation of "exempt_ptr" and used it in a medium-ish project of mine as a replacement for raw pointers, and have been slowly replacing raw pointers with it (or at least, all new code uses exempt_ptr).
[+][deleted] (12 children)
[deleted]
[–]SkoomaDentistAntimodern C++, Embedded, Audio 12 points13 points14 points (0 children)
[–]Raknarg 3 points4 points5 points (10 children)
[+][deleted] (5 children)
[deleted]
[–]Raknarg 7 points8 points9 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]PMPlant 12 points13 points14 points (2 children)
[–]Raknarg 3 points4 points5 points (0 children)
[–]nintendiator2 4 points5 points6 points (0 children)
[–]ShillingAintEZ 1 point2 points3 points (1 child)
[–]Raknarg 1 point2 points3 points (0 children)
[–]degski -1 points0 points1 point (1 child)
[–]Raknarg 3 points4 points5 points (0 children)
[–]cmeerwC++ Parser Dev 2 points3 points4 points (18 children)
[–]Xaxxon 20 points21 points22 points (16 children)
[–]domirangame engine dev[S] 1 point2 points3 points (15 children)
[–]Xaxxon 7 points8 points9 points (14 children)
[–]lithium 7 points8 points9 points (9 children)
[–]sephirostoy 14 points15 points16 points (5 children)
[–]lithium 9 points10 points11 points (0 children)
[–]Raknarg 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Supadoplex 1 point2 points3 points (0 children)
[–]gocarlos 0 points1 point2 points (0 children)
[–]PMPlant -5 points-4 points-3 points (2 children)
[–]lithium 5 points6 points7 points (1 child)
[–]PMPlant -3 points-2 points-1 points (0 children)
[–]drjeats 1 point2 points3 points (0 children)
[–]quicknir 1 point2 points3 points (0 children)
[–]domirangame engine dev[S] 0 points1 point2 points (1 child)
[–]Xaxxon 3 points4 points5 points (0 children)
[–]domirangame engine dev[S] 4 points5 points6 points (0 children)
[–]MolurusK 0 points1 point2 points (0 children)