title: namespace conflict in c++
body: <p>I have the following C++ classes.</p>
  
  <p>xyz.h</p>
  
  <pre><code>class xyz {
  public:
      static int abc();
  };
  </code></pre>
  
  <p>qwe.h</p>
  
  <pre><code>#include xyz.h
  
  namespace xyz {
  
  class qwe{
  public:
      void bnm() {
          int value = xyz::abc();
  
      }
  };
  
  }
  </code></pre>
  
  <p>How do I access <code>xyz::abc()</code> here. I get a compilation error here saying <code>abc</code> is not a member of <code>xyz</code>. I understand the reason that it's trying to search for the <code>abc</code> method inside this <code>xyz</code> namespace whereas what it should ideally get is a static method in the <code>xyz</code> class.</p>
  
  <p>Is there a way to get around this without changing the namespace names?</p>