¡@

Home 

c++ Programming Glossary: interfaceimpl

Using make_shared with a protected constructor + abstract interface

http://stackoverflow.com/questions/3541632/using-make-shared-with-a-protected-constructor-abstract-interface

class IInterface public virtual void Method 0 class InterfaceImpl public IInterface public virtual void Method protected InterfaceImpl.. public IInterface public virtual void Method protected InterfaceImpl std shared_ptr IInterface Create std shared_ptr IInterface object.. Create std shared_ptr IInterface object std make_shared InterfaceImpl return object make_shared obviously cannot access the protected..