<div dir="ltr">2013/9/3 niXman <span dir="ltr"><<a href="mailto:i.nixman@gmail.com" target="_blank">i.nixman@gmail.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> Hi,<br> <br> Why 'type' is not same as 'expected' in the example below?<br></blockquote><div><br></div><div>Because 'push_back' returns you a 'view'.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br> using origin = boost::fusion::map<<br> � � boost::fusion::pair<int, int><br> >;<br> using expected = boost::fusion::map<<br> � � �boost::fusion::pair<int, int><br> � � ,boost::fusion::pair<char, char><br> >;<br> <br> using type = boost::fusion::result_of::push_back<<br> � � �origin<br> � � ,boost::fusion::pair<char, char><br> >::type;<br> <br> static_assert(std::is_same<expected, type>::value, "error!");<br> <br> <br> The second question is, how can I get the same type as 'expected' when<br> using 'result_of::push_back<>::type' ?<br></blockquote><div><br></div><div>Try 'as_map'�</div><div><br></div><div><br></div><div>HTH</div></div></div></div>