Author Topic: Enums inside Namespace  (Read 7605 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:

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

void main(void)

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: 5506
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.