by tptacek · 13y ago · 0 comments
People use shared pointers to mitigate that problem, but shared pointers are (a) a reference counting scheme with all the attendant problems and (b) not compatible with code that holds references but doesn't speak the same shared pointer scheme.
(It's been a bunch of years for me since I wrote C++ professionally; that may show here.)
https://qt-project.org/doc/qt-5.0/qtcore/qmutexlocker.html#d...