Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 auto and rename refactoring [VAX 1918, VS2010 SP1]

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
googly Posted - Nov 09 2012 : 09:26:36 AM

struct SomeStruct
{
   int ToBeRenamed;
}

...


{
    std::vector<SomeStruct> v = GetSomeStructs();
    for (auto it = begin(v); it != end(v); ++it)
    {
        auto& thingy = *it;
        int blah = thingy.ToBeRenamed;  // <- this does not get renamed if I apply rename refactoring on the struct member definition
    }
}
3   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Apr 07 2014 : 3:30:06 PM
case=70481 is fixed in build 2031
googly Posted - Nov 13 2012 : 02:19:46 AM
Ah, good to know! Thanks for the reply.
sean Posted - Nov 09 2012 : 10:29:16 AM
Thanks for the report.

This is a problem not so much with auto but rather with begin() and end(). case=70481
The example works if using v.begin() instead of begin(v).

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