Inserting item into map, which holds 2 more map
<p>I am trying to insert an item, into a map, which holds two other map.</p>

<pre><code>map&lt; map&lt;int, int&gt; , map&lt;int, int&gt; &gt; GC;

map&lt;int, int&gt; A;
A.insert(pair&lt;int,int&gt;(1,1));
map&lt;int, int&gt;:: iterator p1 = A.begin();

map&lt;int, int&gt; B;
B.insert(pair&lt;int,int&gt;(2,3));
map&lt;int, int&gt;:: iterator p2 = B.begin();

GC.insert( pair&lt; map&lt;int,int&gt;, map&lt;int,int&gt; &gt; (*p1, *p2) );
</code></pre>

<p>Well, as presumed its not working.</p>

<p>How to do it?</p>

<p><strong>EDIT:</strong><br>
It gives the following error:</p>

<blockquote>
  <p>E:\CB\test.cpp|20|error: no matching function for call to <code>'std::pair&lt;std::map&lt;int, int, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;const int, int&gt; &gt; &gt;, std::map&lt;int, int, std::less&lt;int&gt;, std::allocator&lt;std::pair&lt;const int, int&gt; &gt; &gt; &gt;::pair(std::pair&lt;const int, int&gt;&amp;, std::pair&lt;const int, int&gt;&amp;)'</code></p>
</blockquote>
