title: Accessing hidden operator from parent namespace in C++
body: <p>I want to intercept the operator &lt;&lt; inside a namespace to add some additional formatting to basic types before printing them out. Can this be done?</p>
  
  <pre><code>namespace Foo {
      std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, bool b) {
          //Can I call std::operator&lt;&lt; here now. Something like:
          // os std::&lt;&lt; (b ? 10 : -10) &lt;&lt; std::endl;
      }
  }
  </code></pre>
  
  <p>Thanks!</p>