<div>Hi�Joel,</div><div><br></div>2013/1/29 Joel de Guzman <span dir="ltr">&lt;<a href="mailto:djowel@gmail.com" target="_blank">djowel@gmail.com</a>&gt;</span><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 1/29/13 5:36 PM, TONGARI wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I&#39;d expect the associative sequence could be constructed and assigned with<br>
another sequence in different order.<br>
But it doesn&#39;t work, the src sequence must in the same order as the<br>
dst sequence defined.<br>
E.g. map&lt;pair&lt;K1, int&gt;, pair&lt;K2, int&gt; &gt; cannot take make_map&lt;K2, K1&gt;(1, 2).<br>
<br>
This is a bit disappointing :-(<br>
</blockquote>
<br></div></div>
Yep. It&#39;s the way it is currently. I might be reworking maps though<br>
so I&#39;ll keep this use-case in mind with the update.<br></blockquote><div><br></div><div>Thanks for your attention :)</div><div>Now I&#39;m thinking if we could have these:</div><div><br></div><div>mapping(dst, src) // all the intersected</div>
<div>left_mapping(dst, src) // requires dst &lt;= src</div><div>right_mapping(dst, src) //�requires�dst &gt;= src</div><div>full_mapping(dst, src) // requires equivalence</div><div><br></div></div></div>