Demo of shared_ptr to member variable