Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 C++ Refactor helper: auto -> type

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
ssproessig Posted - May 03 2013 : 06:13:40 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 03 2013 : 12:05:48 PM
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.

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