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
 Technical Support
 Extract Method problem...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dango
Junior Member

20 Posts

Posted - Jan 25 2007 :  6:08:24 PM  Show Profile  Reply with Quote
Va.x build 1544 (and older ones)

When I have a local variable:
std::vector<MyClassScope::MyPublicType>& foo;

And I extract method on some code that uses foo I get a funky looking parameter in the method param list.
The Angle brackets and :: are replaced with a non-alphanumeric character (displayed as a square).

dango
Junior Member

20 Posts

Posted - Jan 25 2007 :  6:25:50 PM  Show Profile  Reply with Quote
P.S. I've always seen this with reference, templated variables.
P.P.S C++ visual studio 2003
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jan 26 2007 :  08:21:20 AM  Show Profile  Reply with Quote
Can you post a short code sample that shows this effect? I have just tested this using:

static void testExtractVector()
{
	std::vector<MyClassScope::MyPublicType>& foo;
	foo.size();  // extract this line only
}


and I ended up with the new function:

void MyMethod( std::vector<MyClassScope.MyPublicType> &foo )
{
	foo.size();
}


I have seen the problem characters, but not for a while. I know of one bug that will produce then in VA 1544, but this only happens under fairly specific conditions.

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