Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Find References + auto iterators

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
jschultz Posted - Sep 04 2012 : 6:31:43 PM
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?
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Sep 12 2012 : 12:48:58 PM
This is improved in build 1916, but there are still some issues so the bug remains open.
sean Posted - Sep 05 2012 : 12:30:38 AM
This is definitely an area that needs improvement. I've opened a bug for it: case=69089. Thanks for the report.

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