Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Incorrect auto-expansion of dot to ->

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
tconkling Posted - Jan 31 2006 : 2:20:40 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jun 19 2006 : 5:43:07 PM
Fixed in build 1524:

Dot no longer converted to -> on deferenced iterator. (case=979)
feline Posted - Feb 01 2006 : 5:37:39 PM
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.

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