As we know, since c++ 11 the standard library serve a few smart pointer class for us. it is really convinent.
I try to use a share_ptr class to implement some my project to share the ownership of a object. since I don’t use
share_ptr before, I decide to do some expriment about this sort of smart pointer.
I try to distinguish the difference between passing value and passing reference, and use a member share_ptr of class to share the
ownership of a raw pointer; It’s kind of cool, it is exactly what I expected.