EnglishFrenchSpanish

OnWorks favicon

shared_from_this() in Constructor

Free download shared_from_this() in Constructor Linux app to run online in Ubuntu online, Fedora online or Debian online

This is the Linux app named shared_from_this() in Constructor whose latest release can be downloaded as sharedptr_1.0.zip. It can be run online in the free hosting provider OnWorks for workstations.

Download and run online this app named shared_from_this() in Constructor with OnWorks for free.

Follow these instructions in order to run this app:

- 1. Downloaded this application in your PC.

- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 3. Upload this application in such filemanager.

- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.

- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 6. Download the application, install it and run it.

shared_from_this() in Constructor


Ad


DESCRIPTION

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


Programming Language

C++



This is an application that can also be fetched from https://sourceforge.net/projects/shared-from-this-ctor/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.


Ad