Passing shared_ptr as shared_ptr

This will also happen if you’ve forgotten to specify public inheritance on the derived class, i.e. if like me you write this:

class Derived : Base
{
};

Instead of:

class Derived : public Base
{
};

Leave a Comment