title: generic shared_ptr as member of a class
body: <p>I want to have a shared_ptr as a member of a class, but the type that the shared_ptr manages is different each time and is only known at run time. Is there any way to declare such a member and init it later?</p>