News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Enums inside Namespace

Started by daniloz, December 07, 2010, 01:26:34 PM

Previous topic - Next topic

daniloz

Hi All,

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


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?

killerbot

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.