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
 improve Goto Implementation with templates
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Luke1410
Senior Member

32 Posts

Posted - Apr 08 2010 :  7:10:02 PM  Show Profile  Reply with Quote
Using the following code example:
template<class T> class Foo
{
	void Test();
};

template<class T> Foo<T>::Test()
{
}


When moving the cursor to the line "template<class T> Foo<T>::Test()" and pressing ALT+G the cursor correctly moves to "void Test();" in the class definition.

However, when moving the cursor over the line "void Test();" and pressing ALT+G the cursor stays where it is, while I'd suspect it'd be moved to the method implementation line (aka: "template<class T> Foo<T>::Test()").

This type of separating the method definitions from method declarations when working with templates is especially useful when working with larger template classes (and in our production code is used for a couple of classes). It'd be nice, if VAX' ALT+G-functionality would be improved to also support that kind of code layout.

Edited by - Luke1410 on Apr 08 2010 7:12:41 PM

feline
Whole Tomato Software

United Kingdom
18727 Posts

Posted - Apr 12 2010 :  1:51:39 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=42266

Both Find References and the Alt-M list list both the implementation and declaration of this function, so this might help you to find the declaration for now. I know it is not the same, but it might help a bit.

zen is the art of being at one with the two'ness
Go to Top of Page

StefanEgo
Ketchup Master

56 Posts

Posted - Oct 29 2012 :  03:56:05 AM  Show Profile  Reply with Quote
tested and confirmed fixed in 1918 ;-) Thx.

Edited by - StefanEgo on Oct 29 2012 03:56:18 AM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2012 :  10:56:53 AM  Show Profile  Reply with Quote
case=42266 is fixed in build 1918
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