Author Topic: Enums inside Namespace  (Read 5129 times)

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Enums inside Namespace
« 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?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5297
Re: Enums inside Namespace
« Reply #1 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.