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
 Incorrect auto-expansion of dot to ->
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tconkling
New Member

2 Posts

Posted - Jan 31 2006 :  2:20:40 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Feb 01 2006 :  5:37:39 PM  Show Profile  Reply with Quote
i am seeing the same thing.

case=979

as a work around if you press backspace immediately after the dot has been converted to -> then you get the dot back again. not ideal but it helps.

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

support
Whole Tomato Software

5566 Posts

Posted - Jun 19 2006 :  5:43:07 PM  Show Profile  Reply with Quote
Fixed in build 1524:

Dot no longer converted to -> on deferenced iterator. (case=979)
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