Call to a constructor cannot appear in a constant-expression
<p>I am sorry for my newbie question, but I do not know much about C++. Can anybody answer why I get the error "error: a call to a constructor cannot appear in a constant-expression" when compiling following code; </p>

<pre><code>class EliminationWeight
{
 public:
    typedef double Type;
    static const Type MAX_VALUE = __DBL_MAX__;
    static const Type MIN_VALUE = -__DBL_MAX__;
};
</code></pre>

<p>I use Ubuntu 12.04 and gcc that comes with it. It is not my code and I know that this code probably it works OK 100% (perhaps in older version of gcc or other compiler). Is there a quick way to fix it? </p>

<p>Thanks in advance for any answers, this is actually my first time asking something at SO.</p>
