Author Topic: 11.0.2 Tagging and namespaces  (Read 2617 times)

kevino

  • New Community Member
  • Posts: 1
  • Hero Points: 0
11.0.2 Tagging and namespaces
« on: March 06, 2007, 06:33:17 pm »
I can't navigate via Ctrl-. from the declaration of a class member to the definition if the class is in a namespace scope, but the definition is not (but is explicitly scoped). Here are some examples, note that this is the entire example, there are no include files or macros involved:

Code: [Select]
namespace Outer
{
    class Foo
    {
    public:
        int foo1();
        int foo2();
    };  // class Foo

    namespace Inner
    {
        class Bar
        {
        public:
            int bar1();
            int bar2();
            int bar3();
        };  // class Bar
    }   // namespace Inner

}   // namespace Outer



int Outer::Foo::foo1()  // Cannot Ctrl-. navigate to this definition
{
    return 1;
}

int Outer::Inner::Bar::bar1()   // Cannot Ctrl-. navigate to this definition
{
    return 1;
}

namespace Outer
{
    int Foo::foo2() // Can Ctrl-. navigate to this definition
    {
        return 2;
    }

    int Inner::Bar::bar2()  // Cannot Ctrl-. navigate to this definition
    {
        return 2;
    }

    namespace Inner
    {
        int Bar::bar3() // Can Ctrl-. navigate to this definition
        {
            return 3;
        }
    }   // namespace Inner
}   // namespace Outer