Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Goto real member not using

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
superzmy Posted - Sep 05 2023 : 10:58:28 PM
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

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 06 2023 : 09:06:47 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000