Boost C++ Libraries: Ticket #11388: boost::container::list::emplace_back broken on Visual Studio 2010 https://svn.boost.org/trac10/ticket/11388 <p> The sample below fails to compile with 1.58. It has no problem with 1.57. </p> <pre class="wiki">#include &lt;boost/container/list.hpp&gt; #include &lt;boost/container/vector.hpp&gt; struct simple_type { simple_type (int a, int b, int c, int d, int e, int f, int g) { a_ = a; b_ = b; c_ = c; d_ = d; e_ = e; f_ = f; g_ = g; }; int a_, b_, c_, d_, e_ , f_, g_; }; int main() { boost::container::vector&lt;simple_type&gt; vector; vector.emplace_back (1, 2, 3, 4, 5, 6, 7); boost::container::list&lt;simple_type&gt; list; list.emplace_back (1, 2, 3, 4, 5, 6, 7); return 0; } </pre><p> The error reported: </p> <pre class="wiki">1&gt;------ Build started: Project: intrusive_list, Configuration: Debug Win32 ------ 1&gt; stdafx.cpp 1&gt; list_bug.cpp 1&gt;c:\boost_versions\boost_1_58_0\boost\container\list.hpp(753): error C2660: 'boost::container::container_detail::node_alloc_holder&lt;Allocator,ICont&gt;::create_node' : function does not take 7 arguments 1&gt; with 1&gt; [ 1&gt; Allocator=boost::container::new_allocator&lt;simple_type&gt;, 1&gt; ICont=boost::intrusive::list_impl&lt;boost::intrusive::bhtraits&lt;boost::container::container_detail::list_node&lt;simple_type,void *&gt;,boost::intrusive::list_node_traits&lt;void *&gt;,normal_link,boost::intrusive::dft_tag,1&gt;,unsigned int,true,boost::intrusive::list_defaults::header_holder_type&gt; 1&gt; ] 1&gt; c:\boost_versions\boost_1_58_0\boost\container\list.hpp(753) : see reference to function template instantiation 'boost::container::container_detail::iterator_from_iiterator&lt;IIterator,IsConst&gt; boost::container::list&lt;T&gt;::emplace&lt;int,int,int,int,int,int,int&gt;(boost::container::container_detail::iterator_from_iiterator&lt;IIterator,true&gt;,P0 &amp;&amp;,P1 &amp;&amp;,P2 &amp;&amp;,P3 &amp;&amp;,P4 &amp;&amp;,P5 &amp;&amp;,P6 &amp;&amp;)' being compiled 1&gt; with 1&gt; [ 1&gt; IIterator=boost::intrusive::list_iterator&lt;boost::intrusive::bhtraits&lt;boost::container::container_detail::list_node&lt;simple_type,void *&gt;,boost::intrusive::list_node_traits&lt;void *&gt;,normal_link,boost::intrusive::dft_tag,1&gt;,false&gt;, 1&gt; IsConst=false, 1&gt; T=simple_type, 1&gt; P0=int, 1&gt; P1=int, 1&gt; P2=int, 1&gt; P3=int, 1&gt; P4=int, 1&gt; P5=int, 1&gt; P6=int 1&gt; ] 1&gt; c:\users\rafgag\vcb1000dd.git_migrated\build\intrusive_list\intrusive_list.cpp(31) : see reference to function template instantiation 'void boost::container::list&lt;T&gt;::emplace_back&lt;int,int,int,int,int,int,int&gt;(P0 &amp;&amp;,P1 &amp;&amp;,P2 &amp;&amp;,P3 &amp;&amp;,P4 &amp;&amp;,P5 &amp;&amp;,P6 &amp;&amp;)' being compiled 1&gt; with 1&gt; [ 1&gt; T=simple_type, 1&gt; P0=int, 1&gt; P1=int, 1&gt; P2=int, 1&gt; P3=int, 1&gt; P4=int, 1&gt; P5=int, 1&gt; P6=int 1&gt; ] 1&gt;c:\boost_versions\boost_1_58_0\boost\container\list.hpp(753): fatal error C1903: unable to recover from previous error(s); stopping compilation 1&gt; Generating Code... ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11388 Trac 1.4.3 Ion Gaztañaga Fri, 12 Jun 2015 21:56:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11388#comment:1 https://svn.boost.org/trac10/ticket/11388#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Fixed in: </p> <p> [develop 61a2f49] Fixes Trac <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11388" title="#11388: Bugs: boost::container::list::emplace_back broken on Visual Studio 2010 (closed: fixed)">#11388</a> (boost::container::list::emplace_back broken on Visual Studio 2010) </p> <blockquote> <p> 2 files changed, 20 insertions(+), 82 deletions(-) </p> </blockquote> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/61a2f49ef28f7ae22c8fab412ab967638fed38fd"><span class="icon">​</span>https://github.com/boostorg/container/commit/61a2f49ef28f7ae22c8fab412ab967638fed38fd</a> </p> Ticket