I'm having a minor problem with version 1440 of VA in Visual Studio 2003 (this problem existed at least as far back as VA 1438, and possibly before). In certain circumstances, VA is incorrectly auto-converting "." to a "->".
Here's some sample code that produces the problem on my machine:
#include <vector>
struct foo
{
void bar() {}
};
int _tmain(int argc, _TCHAR* argv[])
{
std::vector<foo> vec;
for(std::vector<foo>::iterator iter = vec.begin(); iter != vec.end(); ++iter)
{
(*iter).bar()
}
}
When I type:
(*iter).
VA incorrectly changes the text to:
(*iter)->
The problem goes away when I turn off the "Convert dot to ->" option of VA.
The dot to -> conversion almost always works correctly for me; it's just when I'm iterating these containers that the problem occurs.