Author Topic: push-tag and overrides  (Read 2755 times)

jnairb

  • Senior Community Member
  • Posts: 245
  • Hero Points: 11
push-tag and overrides
« on: March 25, 2015, 03:15:56 AM »
Given the following code:
Code: [Select]
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?

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: push-tag and overrides
« Reply #1 on: March 25, 2015, 10:36:30 PM »
Reproduced and logged.  Unfortunately, this problem is not hot-fixable.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7041
  • Hero Points: 535
Re: push-tag and overrides
« Reply #2 on: March 26, 2015, 08:43:56 PM »
Dennis has fixed this for 19.0.2 RC 4 which we expect to be available tomorrow.

jnairb

  • Senior Community Member
  • Posts: 245
  • Hero Points: 11
Re: push-tag and overrides
« Reply #3 on: March 27, 2015, 02:22:43 PM »
Thanks. I've confirmed that it's fixed in 19.0.2 RC 4.

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: push-tag and overrides
« Reply #4 on: March 27, 2015, 03:14:34 PM »
Good deal.  Thanks for letting us know.