View Single Post
Capt'n Corrupt's Avatar
Posts: 3,524 | Thanked: 2,958 times | Joined on Oct 2007 @ Delta Quadrant
#161
Originally Posted by attila77 View Post
QPointer and friends *sort of* do this. My code is mostly devoid of class* thingies because it's easier and safer to use Qt's smart pointer classes. While this does not do object movement in memory (*now* - as said above, benefits of that can be ambiguous), it does affect memory management, as it provides reference counting, CoW operations, shared data, etc.
Smart pointers sound interesting, I will look into this class. QPointers are also interesting. However, my idea was to mimic the pointer system via class that controlled a contiguous block (or blocks) and methods for controlling it. This is somewhat different than guarded pointers.

Out of curiosity (and don't answer if you don't want to), what type of programming do you do?