Given the following code:
struct S;
class B {
protected:
virtual B* canReuse(S* sPtr);
};
class D : public B {
protected:
virtual B* canReuse(S* sPtr);
};
void test(B* bPtr, S* sPtr) {
bPtr->canReuse(sPtr);
}
In VS 18, pressing Ctrl-dot (push-tag) on the canReuse call in test(), lets me select from both B::canReuse and D::canReuse. VS 19 just goes to B::canReuse. How do I get VS 19 to allow me to select which virtual function I want to go to?