Pass shared_ptr trough functions[quote]If you are using this approach you probably want to provide a function to free the object bec...
Pass shared_ptr trough functions[code]#include <iostream> #include <memory> using namespace std; std::shared_ptr<int> f(int x) { ...
Pass shared_ptr trough functionsIf I return shared_ptr from my function, can declare the prototype as if it return the 'raw' pointer...
Pass shared_ptr trough functionsHow?
Pass shared_ptr trough functionsIt is possible to use a standard (C++11) smart pointer to allocate memory for an object into a funct...
This user does not accept Private Messages