title: anonymous namespace
body: <p>What is the different between these two?</p>
  
  <p>cpp-file:</p>
  
  <pre><code>namespace
  {
      int var;
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>int var;
  </code></pre>
  
  <p>if both are put in the cpp file? Is not correct that we put a variable in anonymous namespace so it can be private for just that file? But if we put a global variable in a cpp file is not that variable also privat because you never do an include to .cpp file?</p>