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
 Find References + auto iterators
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jschultz
Junior Member

24 Posts

Posted - Sep 04 2012 :  6:31:43 PM  Show Profile  Reply with Quote
I found that the C++11 auto keyword doesn't seem to work very well together with the Find References command, for example,


auto list = getSomeList(); // list is of type std::list<Foo *>
for(auto i = list.begin(); i != list.end(); i++)
{
   (*i)->someMethod();
}

Placing the cursor on "someMethod" and using Find References tells me that the reference is not recognized. Replacing "auto i" by "std::list<Foo *>::iterator i" seems to help.
Is this a known problem?

Edited by - jschultz on Sep 05 2012 05:59:55 AM

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 05 2012 :  12:30:38 AM  Show Profile  Reply with Quote
This is definitely an area that needs improvement. I've opened a bug for it: case=69089. Thanks for the report.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 12 2012 :  12:48:58 PM  Show Profile  Reply with Quote
This is improved in build 1916, but there are still some issues so the bug remains open.
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