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. |
|
|