Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Eclipse can not auto complete the methods of an object if it is an element of a vector?

Hey,

I have a standard makefile C++ project. The following behavior of
Eclipse code assistant confuses me:

works:
aModel a = new aModel();
            a->getCount();

not working:
vector<aModel *> aModelVec;
aModelVec.push_back(new aModel());
aModelVec[0]->getCount();

Note that Eclipse can auto complete  a->getCount(), but not the
aModelVec[0]->getCount().  Any suggestions?

-- 
Best regards,
Michael Chen


Back to the top