<div dir="ltr">2013/9/3 niXman <span dir="ltr">&lt;<a href="mailto:i.nixman@gmail.com" target="_blank">i.nixman@gmail.com</a>&gt;</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 &#39;type&#39; is not same as &#39;expected&#39; in the example below?<br></blockquote><div><br></div><div>Because &#39;push_back&#39; returns you a &#39;view&#39;.</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&lt;<br>
� � boost::fusion::pair&lt;int, int&gt;<br>
&gt;;<br>
using expected = boost::fusion::map&lt;<br>
� � �boost::fusion::pair&lt;int, int&gt;<br>
� � ,boost::fusion::pair&lt;char, char&gt;<br>
&gt;;<br>
<br>
using type = boost::fusion::result_of::push_back&lt;<br>
� � �origin<br>
� � ,boost::fusion::pair&lt;char, char&gt;<br>
&gt;::type;<br>
<br>
static_assert(std::is_same&lt;expected, type&gt;::value, &quot;error!&quot;);<br>
<br>
<br>
The second question is, how can I get the same type as &#39;expected&#39; when<br>
using &#39;result_of::push_back&lt;&gt;::type&#39; ?<br></blockquote><div><br></div><div>Try &#39;as_map&#39;�</div><div><br></div><div><br></div><div>HTH</div></div></div></div>