How can I initialise a static member of a class after certain other initialisation has taken place?
<p>I want to be able to initialise the static member <code>scalingfactor</code> in the following class:</p>

<pre><code>class ScalingRect: public Rect
{
public:
    static float scalingfactor;

    ...
};
</code></pre>

<p>I thought I'd initialise it using a static member function of another class like this in the .cpp</p>

<pre><code>float ScalingRect::Rect = Engine::GetScaleFactor();
</code></pre>

<p>However, I don't want to call <code>GetScaleFactor()</code> before the <code>Engine</code> class is ready. How can I ensure it gets called at the right time?</p>
