shared_ptr to class
Calling member function on a nullptr in C++