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
 C++ Refactor helper: auto -> type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ssproessig
Starting Member

Germany
1 Posts

Posted - May 03 2013 :  06:13:40 AM  Show Profile  Reply with Quote
Hi all,
for a current project where we have old compilers not supporting C++11's auto keyword it would be cool to have a refactor helper for it, that changes auto to the called methods explicit result.

Having
auto x = myclass->mymethod();  // mymethod returns shared_ptr<MyOtherType>

shall refactor to
shared_ptr<MyOtherType> x = myclass->mymethod();


Any change to add this in one of the next releases?

Regards,
S+?ren

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - May 03 2013 :  12:05:48 PM  Show Profile  Reply with Quote
Unfortunately this is something we are very unlikely to do. This is a very specific situation, and not one that is going to help many of our users.

If you place the caret into the variable name then VA will show the full type in the Definition field, which is normally shown at the top of the editor window. You can then copy the type from here and paste it into the editor, to make these conversions quite a lot quicker and easier.

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