Constant value calculation
<p>I have an hpp file with following code:</p>

<pre><code>const float PixelsPerMeter = ConfigManager-&gt;Get&lt;float&gt;("koef", 100.0f);

inline const float Meters2Pixels(float meters) { return meters * PixelsPerMeter; }
inline const float Pixels2Meters(float pixels) { return pixels / PixelsPerMeter; }

const float ScreenArea = Pixels2Meters(ScreenSizeX) * Pixels2Meters(ScreenSizeY);
</code></pre>

<p>It worked before, but now <code>ScreenArea</code> = <code>inf</code> somehow. I use it from static function. I put a breakpoint in that function and print out the value of <code>PixelsPerMeter</code>(100.0), <code>ScreenSizeX</code> and <code>ScreenSizeY</code>. Everything is okay, but <code>ScreenArea</code> is calculated wrong.</p>

<p>When I write directly <code>Pixels2Meters(ScreenSizeX) * Pixels2Meters(ScreenSizeY)</code> instead of using <code>ScreenArea</code> constant everything works.</p>

<p>How it could be?</p>
