Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: qtreez on March 01, 2015, 07:05:17 pm

Title: Code Completion with class templates
Post by: qtreez on March 01, 2015, 07:05:17 pm
It is possible that Code Completions works with templates?

For example class wxListBox inherits from the wxControlWithItemsBase (indirectly, but that is not important) and wxWindowWithItems is class template as you can see below:


Code
class  wxControlWithItemsBase :
    public wxWindowWithItems<wxControl, wxItemContainer>
{ };

Code
template <class W, class C>
class wxWindowWithItems : public W, public C
{ };

Code Completion doesn't complete methods from wxControl nor wxItemContainer classes.
This feature would be quite helpful.
Title: Re: Code Completion with class templates
Post by: oBFusCATed on March 02, 2015, 09:14:17 pm
Can you reproduce this problem with a simple example that doesn't use any other library?