Closed marcuschangarm closed 8 years ago
@bogdanm I've added the changes you mentioned last time we spoke about this.
Sorry if you've already discussed this but if it follows the std::shared_ptr
API why not call it mbed:: shared_ptr
or something?
I wanted to make it clear it is not the same thing. The constructor is different for example.
And the name resembles FunctionPointer.
Ah ok, similar but not the same API then.
Class follows the shared_ptr API from C++11. Reference counts are updated when SharedPointer objects are passed around by value.
Usage: