#define SHAREDPTR(cls)\ class cls;\ typedef shared_ptr<cls> cls##Ptr; 转载于:https://www.cnblogs.com/huyupei/p/7800542.html