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
 Rename-refactoring on types and C++ 11 lamdas
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

milgner
Starting Member

Germany
1 Posts

Posted - Jun 13 2012 :  04:27:37 AM  Show Profile  Reply with Quote
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.

Example:

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

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

All the best
Marcus

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 13 2012 :  9:23:50 PM  Show Profile  Reply with Quote
Thank you for reporting this. We are planning to improve lambda support:

case=20625
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 14 2012 :  5:27:46 PM  Show Profile  Reply with Quote
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?

Edited by - accord on Jun 14 2012 5:28:28 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2012 :  11:13:00 AM  Show Profile  Reply with Quote
handled via case=57605, 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