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
 Iterator parsing issue with typedefs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BigHands
Senior Member

28 Posts

Posted - Sep 01 2010 :  08:42:09 AM  Show Profile  Reply with Quote
I'm having an issue where the autocomplete box is incorrect when dereferencing an iterator. I've attached a screenshot of the problem and the example code for easy cut and paste. (I'm using VS2008)



http://img251.imageshack.us/i/vaxparseerror.jpg/]



#include <vector>

template<class T, class A = std::allocator<T> >
struct vector
{
	typedef std::vector<T, A> type;
};

struct Simple
{
	int a;
	float b;

	Simple(int _a, float _b) : a(_a), b(_b){}
};

int main(int argc, char* argv[])
{
	vector<Simple>::type v;
	v.push_back(Simple(11, 11.0f));
	v.push_back(Simple(22, 22.0f));

	vector<Simple>::type::const_iterator iter;
	for(iter = v.begin() ; iter != v.end() ; ++iter)
	{
		int a = (*iter)##PUT DOT HERE##
	}

	return 0;
}

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 01 2010 :  3:17:13 PM  Show Profile  Reply with Quote
I was able to reproduce the problem and put in a bug report for this:

case=49403

Thank you for the clear sample. For now, you can turn on

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

as a workaround. I tried and it worked with VS2008 SP1 for me.

Edited by - accord on Sep 01 2010 3:19:11 PM
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