Putting a const in a header
<p>From everything I am reading and testing, there is no way (without a preprocessor macro) to define a constant in a shared header and ensure that each TU is not creating its own storage for that constant.</p>

<p>I can do this:</p>

<p><code>const int maxtt=888888;</code></p>

<p>Which is the same exactly as:</p>

<p><code>static const int maxtt=888888;</code></p>

<p>And if this header is shared, it will work but each TU gets its own copy of <code>maxtt</code>. I could also do this, to prevent that:</p>

<p><code>extern const int maxtt;</code></p>

<p>But then I cannot define <code>maxtt</code> here; that must be done in a CPP to avoid linker error.</p>

<p>Is my understanding correct?</p>
