Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Rename-refactoring on types and C++ 11 lamdas

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

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

Forum code is on.
Html is off.

Check to subscribe to this topic.

T O P I C    R E V I E W
milgner Posted - Jun 13 2012 : 04:27:37 AM
Just did a "Rename" refactoring on a class and found that VA-X will not rename any references to this type in a lambda return value declaration.


concurrency::create_async([=]() -> ClassToRename^ { ... });

the "ClassToRename" would not get renamed. No biggie, just wanted to let you know :)

All the best

3   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 29 2012 : 11:13:00 AM
handled via case=57605, fixed in build 1918
accord Posted - Jun 14 2012 : 5:27:46 PM
I'm not using lambdas yet for everyday work, but I tried to create a simplified test case that compiles:

class testassignment
	int foo;

void testfunction()
	testassignment x;
	testassignment y = [=]()->testassignment {return testassignment();}();

With this test case, I wasn't able to reproduce the problem. Every occurrences of testassignment were renamed. Can you please try if you are able to reproduce the problem using the above code snippet?

What Visual Studio and Visual Assist versions are you using?
What's the use of the ^ symbol? It doesn't make any difference regarding the rename problem though.
You are using C++. Is that right?
accord Posted - Jun 13 2012 : 9:23:50 PM
Thank you for reporting this. We are planning to improve lambda support:


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