C++ variable header scope
<p>I have a number of <em>templatic</em> and <em>inline</em> functions defined in an <em>header</em> file (let's call it <code>head.h</code>). Currently, these functions use some global variables declared with <code>extern</code> in the same header and defined somewhere in one <em>.cpp</em>.</p>

<p>Everything works fine, but I would limit global variables scope only to the header where they are defined.</p>

<p>In other words every other <em>.h</em> or <em>.cpp</em> that includes my <em>head.h</em> wouldn't be able to see such globals.</p>

<p>Any way to achieve this result?</p>