Boost C++ Libraries: Ticket #12538: Compiler error when assigning result of list_of to std::list on GCC https://svn.boost.org/trac10/ticket/12538 <p> The following program fails to compile on GCC: </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/assign/list_of.hpp&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;list&gt;</span><span class="cp"></span> <span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span> <span class="n">std</span><span class="o">::</span><span class="n">list</span><span class="o">&lt;</span><span class="kt">int</span><span class="o">&gt;</span> <span class="n">l</span><span class="p">;</span> <span class="n">l</span> <span class="o">=</span> <span class="n">boost</span><span class="o">::</span><span class="n">assign</span><span class="o">::</span><span class="n">list_of</span><span class="p">(</span><span class="mi">1</span><span class="p">)(</span><span class="mi">2</span><span class="p">);</span> <span class="p">}</span> </pre></div></div><p> <a class="ext-link" href="http://melpon.org/wandbox/permlink/wF67wEUtRv6betkO"><span class="icon">​</span>http://melpon.org/wandbox/permlink/wF67wEUtRv6betkO</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12538 Trac 1.4.3 James E. King, III Sat, 13 Oct 2018 14:35:25 GMT owner changed https://svn.boost.org/trac10/ticket/12538#comment:1 https://svn.boost.org/trac10/ticket/12538#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Thorsten Ottosen</span> to <span class="trac-author">James E. King, III</span> </li> </ul> Ticket James E. King, III Sat, 13 Oct 2018 14:35:32 GMT status changed https://svn.boost.org/trac10/ticket/12538#comment:2 https://svn.boost.org/trac10/ticket/12538#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket James E. King, III Sat, 13 Oct 2018 14:35:39 GMT <link>https://svn.boost.org/trac10/ticket/12538#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12538#comment:3</guid> <description> <p> Currently tracked by: <a class="ext-link" href="https://github.com/boostorg/assign/pull/22"><span class="icon">​</span>https://github.com/boostorg/assign/pull/22</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Sat, 13 Oct 2018 14:37:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12538#comment:4 https://svn.boost.org/trac10/ticket/12538#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket