Community
Participate
Working Groups
Hi. I have following declerations in a header file. template <typename Key> class Virtuals { private: virtual Key getKey() const = 0; public: Virtuals() {} virtual ~Virtuals() {} }; class Derived : public Virtuals<int> { private: inline virtual int getKey() const { return int(); } }; void test(); In the corresponding cpp file I defined the method test() in following way: void test() { Derived d; } This code would be compile without any problem, but the indexer of Eclipse CDT reports following error in the definition of test() at the place where an object of Derived will be created: The type 'Derived' must implement the inherited pure virtual method 'Virtuals::getKey' I'm using CDT 8.8.0.201509131935 unter Linux. I think this is an error.