Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Wrong type deduction in range based for loop

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
joostn Posted - Apr 23 2015 : 08:25:27 AM
See this example:

#include <memory>
#include <complex>

void test()
{
  std::shared_ptr<std::vector<std::shared_ptr<std::complex<float> > > > ptr;
  for (auto p : *ptr)
  {
    p->   // VAX gives wrong suggestions here!
  }
}


When I type the p-> above, I get a wrong popup list with suggestions. The suggestions refer to std::vector instead of std::complex.

VA_X.dll file version 10.9.2062.0 built 2015.04.07

Let me know if you need more information.
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 24 2015 : 01:03:47 AM
After some more testing I am seeing the same problem in VS2013, but only when I have turned off "Get content from default Intellisense". Thank you for the clear description:

case=89328
feline Posted - Apr 23 2015 : 3:54:04 PM
Which IDE are you using? In VS2013 with VA 2062 I am getting the functions "imag" and "real" and some overloaded operators, along with _Val. The tooltips indicate these are members of std::complex.

Do you have:

VA Options -> Listboxes -> Get content from default Intellisense

turned On or Off? If this is turned Off does turning it On make any difference?

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