You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the Inheritance & Dynamic Casting Quickstart example. The upcast is working correctly but the dynamic_cast crashes: Mock<C> cMock; When(Method(cMock, foo)).AlwaysReturn(0); A& a = cMock.get(); // get instance and upcast to A& B& b = dynamic_cast<B&>(a); // downcast to B& --> Crash!
I'm using Visual Studio 2015 Update 3 on Windows 10.