static const types in template classes
<p>I've been doing some research into this problem but haven't yet been able to come up with a solution. Basically I need to initialize a static const type variable inside a template class.</p>

<pre><code>class MyType
{
public:
    MyType (int a, int b) { }
};

template &lt;class T&gt;
class MyClass
{
public:
    static const MyType Type;
};
</code></pre>

<p>Initializing Type inside the cpp will produce a linker error. Initializing Type inside the header will cause it to be initialized multiple times. Initializing  Type inside the class cannot be done due it being a non-integral type. How can I solve this problem without limiting class specialization. Any help is appreciated.</p>
