Is there reason we are able to define [static const int] in a class definition, but not other static const types?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2454019/why-arent-static-const-floats-allowed">Why aren&#39;t static const floats allowed?</a>  </p>
</blockquote>



<p>Is there any reason why this is not possible in C++? It confuses me.</p>

<pre><code>static const int A = 100; //no error
static const float B = 2.0f; //error, can't define this type in class definition.
</code></pre>
