Problem with std::multimap
<p>I've got the following :</p>

<pre><code>enum Type 
{ One = 0, Two};

class MySubClass
{
private:
MySubClass(); // prohibited
MySubClass(const MySubClass&amp;); // prohibited
MySubClass &amp; operator (const MySubClass&amp;); // prohibited
public :
MySubClass(int x);
};

class MyClass 
{
MyClass(int x) : m_x(new SubClass(x)) 
{}
~MyClass() 
{ delete m_x; }
private :
MySubClass * m_x;
};

typedef multimap&lt;Type, MyClass&gt; my_multimap;
typedef pair&lt;Type, MyClass&gt; my_pair;
</code></pre>

<p>I'm trying to do the following :</p>

<pre><code>my_multimap my_map;
my_map.insert(my_pair(One, MyClass(5)));
</code></pre>

<p>And I'm getting an unhandled exception result, the app is trying to read 0xfeeefeee etc.</p>

<p>What's going on? How can I fix this?
Please note that this is a simplified case of what I'm dealing with;</p>
