Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Extract Method problem...

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
dango Posted - Jan 25 2007 : 6:08:24 PM
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).
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 26 2007 : 08:21:20 AM
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.
dango Posted - Jan 25 2007 : 6:25:50 PM
P.S. I've always seen this with reference, templated variables.
P.P.S C++ visual studio 2003

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