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
 Wrong type deduction in range based for loop
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

joostn
Junior Member

16 Posts

Posted - Apr 23 2015 :  08:25:27 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Apr 23 2015 :  3:54:04 PM  Show Profile  Reply with Quote
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?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Apr 24 2015 :  01:03:47 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
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