Using static class data in std::max and min
<p>I have a static class data member declared as:</p>

<pre><code>static const float MINIMUM_ZOOM_FACTOR = 4.0;
</code></pre>

<p>I'm using this constant in a class member function like this:</p>

<pre><code>zoomFactor_ = max(zoomFactor_, MINIMUM_ZOOM_FACTOR);
</code></pre>

<p>At this point, the compiler complains that MINIMUM_ZOOM_FACTOR is an undefined reference. However if I use it directly like this:</p>

<pre><code>if(fabs(zoomFactor_ - MINIMUM_ZOOM_FACTOR) &lt; EPSILON) ...
</code></pre>

<p>it works a-ok. What am I doing wrong?</p>
