smart
C++, polymorphism, and smart pointers
I have a poor understanding of how smart pointers (especially shared_ptr) interact with polymorphic types. The overall pictur ... // ...
}
}
int main()
{
shared_ptr<Base> base = make_shared<Derived>();
do_something(base);
}