[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.cdt] Problem: autocomplete and template class
|
I am having problems using the auto-complete for members of a template class (and also for any other local variable and local object members) . It just doesn't complete the names!
example:
//dummy.h
#include <string>
template<class x> class dummy
{
public:
dummy();
~dummy();
private:
x m_dummy_member;
int m_dummy_count;
std::string m_name;
};
Then when i try to code the body of a method, say the constructor, it doesn't complete the name of the constructor, nor any member variable, nor the string method.
example:
//dummy.cpp
#include "dummy.h"
template<class x> dummy<x>::dummy() //doesn't complete the name here
{
m_dummy_count = 0; //here too, the var name is not completed
m_name.assign("dummy name");
}
Anyone has any idea why this is happening?
TIA