c++ use shared pointer in different classes code example
Example: c++ make shared_ptr
#include <memory>
std::shared_ptr<int> foo = std::make_shared<int> (10);
#include <memory>
std::shared_ptr<int> foo = std::make_shared<int> (10);