Apparently, many people dislike that the standard std::enable_shared_from_this class does not allow to invoke shared_from_this() in the constructor.
Guess What: This library is supposed to fill the gap.
The boost library does that too, but it does not allow shared_ptrs to be made inside the destructor and it doesn't provide a release() method to gain ownership of the contained pointer.
Big downside is however, that it's not (yet) made thread-safe.
Features
- shared_from_this() in Constructor and Destructor
- Drop-In replacement for std::shared_ptr and std::enable_shared_from_this
- NOT thread-safe
- Provides a release() method
License
GNU General Public License version 2.0 (GPLv2)Follow shared_from_this() in Constructor
Other Useful Business Software
Simplify IT and security with a single endpoint management platform
NinjaOne automates the hardest parts of IT, delivering visibility, security, and control over all endpoints for more than 20,000 customers.
The NinjaOne automated endpoint management platform is proven to increase productivity, reduce security risk, and lower costs for IT teams and managed service providers. The company seamlessly integrates with a wide range of IT and security technologies. NinjaOne is obsessed with customer success and provides free and unlimited onboarding, training, and support.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of shared_from_this() in Constructor!