Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: daniloz on December 07, 2010, 01:26:34 pm

Title: Enums inside Namespace
Post by: daniloz on December 07, 2010, 01:26:34 pm
Hi All,

I found something strange in the CC plugin... See code below:

Code
namespace Enums
{
enum eTest { T_ONE, T_TWO, T_THREE };
}

void main(void)
{
T_
Enums::T_
}

In the first case ("T_") I have a list of completion (see screenshot below), even though I'm outside the namespace. I wouldn't expect any completion hints here.

However, in the second case ("Enums::T_") I get nothing...

The only way to get the completion is via "Enums::eTest::T_", but that's wrong...

Any hints?
Title: Re: Enums inside Namespace
Post by: killerbot on December 07, 2010, 01:52:00 pm
your second case might depend in future.
Currently you are correct, bu with C++0x enum class, you will have to do it that way. Just for your information.