<div>Hi�Joel,</div><div><br></div>2013/1/29 Joel de Guzman <span dir="ltr"><<a href="mailto:djowel@gmail.com" target="_blank">djowel@gmail.com</a>></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'd expect the associative sequence could be constructed and assigned with<br> another sequence in different order.<br> But it doesn't work, the src sequence must in the same order as the<br> dst sequence defined.<br> E.g. map<pair<K1, int>, pair<K2, int> > cannot take make_map<K2, K1>(1, 2).<br> <br> This is a bit disappointing :-(<br> </blockquote> <br></div></div> Yep. It's the way it is currently. I might be reworking maps though<br> so I'll keep this use-case in mind with the update.<br></blockquote><div><br></div><div>Thanks for your attention :)</div><div>Now I'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 <= src</div><div>right_mapping(dst, src) //�requires�dst >= src</div><div>full_mapping(dst, src) // requires equivalence</div><div><br></div></div></div>