Bug #18627 2012-05-31 22:22

snear

No code completion when dealing with structs

Below you see some sample code. A is a template struct. No or incorrect code completion is provided for this struct. Take a look at the comments.

template<class T>

struct A

{

public:

T* Get(int i) { return new T(); }

T* operator->() { return new T(); }

};

class B

{

public:

void Test(int z) { };

};

void test() {

testspace::A<B> x; // = new A<B>();

x.Get(32)->Test(22); // No code completion after writing -> operator.

x->Test(23); // Suggesting Get() after writing -> operator.

};

When changing struct A to class A, everything works fine.

Category
Plugin::CodeCompletion
Group
Platform:Windows
Status
Open
Close date
 
Assigned to