Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Goto real member not using
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

superzmy
Junior Member

China
20 Posts

Posted - Sep 05 2023 :  10:58:28 PM  Show Profile  Reply with Quote
struct B
{
void foo() {} // 1
};

template<typename T>
struct D : B
{
using foo; // 2
};

D<int> d;
d.foo(); // select and alt+G will goto 2 not 1

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Sep 06 2023 :  09:06:47 AM  Show Profile  Reply with Quote
Changing the using line to read:

using B::foo;

lets the code compile, and I am seeing Alt-G go to the using line now. I am not sure this is actually a bug though, since you have "added" B::foo into the derived struct D. If you use Alt-Shift-G then VA knows that foo() is also present in the base class, and now offers to take you there, via the "Base Symbols" sub-menu.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000