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
 auto and rename refactoring [VAX 1918, VS2010 SP1]
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

googly
New Member

8 Posts

Posted - Nov 09 2012 :  09:26:36 AM  Show Profile  Reply with Quote

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
    }
}

sean
Whole Tomato Software

USA
2641 Posts

Posted - Nov 09 2012 :  10:29:16 AM  Show Profile  Reply with Quote
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).
Go to Top of Page

googly
New Member

8 Posts

Posted - Nov 13 2012 :  02:19:46 AM  Show Profile  Reply with Quote
Ah, good to know! Thanks for the reply.
Go to Top of Page

sean
Whole Tomato Software

USA
2641 Posts

Posted - Apr 07 2014 :  3:30:06 PM  Show Profile  Reply with Quote
case=70481 is fixed in build 2031
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000