3 ms·
Oh hey, I just discovered that MS open-sourced the lowest levels of the Office codebase, including the stuff I talked about. The most common shared pointer typ
by pianoben 7y ago
Oh hey, I just discovered that MS open-sourced the lowest levels of the Office codebase, including the stuff I talked about. The most common shared pointer type is actually the inscrutibly-named `TCntPtr`, but the file that covers most of what I talked about above is https://github.com/microsoft/Mso/blob/master/libs/object/include/object/refCountedObject.h https://github.com/microsoft/Mso/blob/master/libs/object/inc....
Neat! ...not that I'd ever use it, or recommend its use. Its tradeoffs make perfect sense for Office but probably not for general-purpose applications.
- pianoben 7y agoThe thing I was thinking of when I said "some ideas just went off in a different direction from the STL" is called a Swarm, and it's here: https://github.com/microsoft/Mso/blob/master/libs/object/include/object/swarm.h https://github.com/microsoft/Mso/blob/master/libs/object/inc...
- saagarjha 7y agoSounds a bit like a nested autorelease pool?