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;
}