User: clros

  • Public profile

User profile: clros

User info
User name:clros
History
Joined:
Number of posts:24
Latest posts:

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 functions
If I return shared_ptr from my function, can declare the prototype as if it return the 'raw' pointer...

Pass shared_ptr trough functions
How?

Pass shared_ptr trough functions
It 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