shared_ptr std::dynamic_pointer_cast fails with "attempting to reference a deleted function" error
Advertisements I have seen all the posts in StackOverflow regarding this similar error and still couldn’t find what is causing issue in mine. I’m using std::dynamic_pointer_cast to cast a std::shared_ptr<Base> object to a std::shared_ptr<DerivedShared> object, but I’m encountering a "attempting to reference a deleted function" error. I’ve ensured that the Base destructor is virtual but… Read More shared_ptr std::dynamic_pointer_cast fails with "attempting to reference a deleted function" error