title: What is the difference between calling foo() and ::foo() within a C++ class member function?
body: <p>I am looking at someone else's C++ code (note I am not fluent in C++).</p>
  <p>Within the class, there is this member function:</p>
  <pre><code>void ClassYaba::funcname()
  {
      ...
      ::foo();
      ...
  }
  </code></pre>
  <p>There is no member function within that class's namespace named <code>foo</code>, but aside from that, what is the difference between <code>::foo()</code> and <code>foo()</code> (no leading colons)?</p>