Boost C++ Libraries: Ticket #9332: has_member_function_callable_with.hpp compile error on msvc-12.0 - '.select_on_container_copy_construction' must have class/struct/union https://svn.boost.org/trac10/ticket/9332 <p> The regression test are showing this compiler error on Boost.Thread </p> <pre class="wiki"> Test output: teeks99-10-win2008-64on64 - thread - container__thread_ptr_list_p / msvc-12.0 Rev 86532 / Fri, 01 Nov 2013 12:53:59 +0000 Compile [2013-11-01 22:52:20 UTC]: fail call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64 &gt;nul cl /Zm800 -nologo @"C:\local\results\boost\bin.v2\libs\thread\test\container__thread_ptr_list_p.test\msvc-12.0\debug\address-model-64\threading-multi\threads\container\thread_ptr_list_pass.obj.rsp" thread_ptr_list_pass.cpp C:\local\boost\boost/intrusive/detail/has_member_function_callable_with.hpp(200) : error C2228: left of '.select_on_container_copy_construction' must have class/struct/union type is 'boost::move_detail::add_rvalue_reference&lt;U&gt;::type' C:\local\boost\boost/intrusive/detail/has_member_function_callable_with.hpp(276) : see reference to class template instantiation 'boost::container::container_detail::has_member_function_callable_with_select_on_container_copy_construction_impl&lt;Fun,true,&gt;' being compiled with [ Fun=std::allocator&lt;thread_ptr&gt; ] C:\local\boost\boost/container/allocator_traits.hpp(262) : see reference to class template instantiation 'boost::container::container_detail::has_member_function_callable_with_select_on_container_copy_construction&lt;const Alloc,&gt;' being compiled with [ Alloc=std::allocator&lt;thread_ptr&gt; ] C:\local\boost\boost/container/list.hpp(84) : see reference to class template instantiation 'boost::container::allocator_traits&lt;Allocator&gt;' being compiled with [ Allocator=std::allocator&lt;thread_ptr&gt; ] C:\local\boost\boost/container/list.hpp(121) : see reference to class template instantiation 'boost::container::container_detail::intrusive_list_type&lt;Allocator&gt;' being compiled with [ Allocator=std::allocator&lt;thread_ptr&gt; ] ..\libs\thread\test\threads\container\thread_ptr_list_pass.cpp(62) : see reference to class template instantiation 'boost::container::list&lt;thread_ptr,std::allocator&lt;T&gt;&gt;' being compiled with [ T=thread_ptr ] </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9332 Trac 1.4.3 Daniela Engert <dani@…> Sun, 10 Nov 2013 17:25:21 GMT attachment set https://svn.boost.org/trac10/ticket/9332 https://svn.boost.org/trac10/ticket/9332 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">vc12_fix_has_member_function_callable_with.patch</span> </li> </ul> Ticket Daniela Engert <dani@…> Sun, 10 Nov 2013 17:30:46 GMT <link>https://svn.boost.org/trac10/ticket/9332#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9332#comment:1</guid> <description> <p> The attached patch seems to work around the compile failure with vc12. IIUC, the root cause is </p> <p> boost::move_detail::declval&lt;F&gt;().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME () </p> <p> being evaluated (line 201). </p> </description> <category>Ticket</category> </item> <item> <author>Daniela Engert <dani@…></author> <pubDate>Mon, 11 Nov 2013 18:33:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9332#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9332#comment:2</guid> <description> <p> May be it should read </p> <blockquote> <p> #ifdef BOOST_NO_SFINAE_EXPR </p> </blockquote> <p> rather than </p> <blockquote> <p> #ifdef BOOST_MSVC </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Mon, 11 Nov 2013 22:21:23 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9332#comment:3 https://svn.boost.org/trac10/ticket/9332#comment:3 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86626" title="Fixes #9332">[86626]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9332" title="#9332: Bugs: has_member_function_callable_with.hpp compile error on msvc-12.0 - ... (closed: fixed)">#9332</a> </p> Ticket anonymous Fri, 13 Jun 2014 19:09:09 GMT <link>https://svn.boost.org/trac10/ticket/9332#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9332#comment:4</guid> <description> <p> Is there any chance this can be part of boost 1.56.0 (whenever that gets released)? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 13 Jun 2014 19:17:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9332#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9332#comment:5</guid> <description> <p> Yes, it's already in the master branch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 11 Jan 2016 08:51:24 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9332 https://svn.boost.org/trac10/ticket/9332 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">has_member_function_callable_with.hpp</span> </li> </ul> Ticket