Boost C++ Libraries: Ticket #9369: error C2228: “.select_on_container_copy_construction” with boost 1.55 and visual studio 2013 https://svn.boost.org/trac10/ticket/9369 <p> compile this program with boost 1.55 and visual studio 2013 </p> <p> #include "stdafx.h" #include &lt;boost/interprocess/file_mapping.hpp&gt; #include &lt;boost/interprocess/mapped_region.hpp&gt; using namespace boost::interprocess; </p> <p> int _tmain(int argc, _TCHAR* argv[]) { </p> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> <p> have error </p> <p> c:\boost\boost_1_55_0\boost\intrusive\detail\has_member_function_callable_with.hpp(200): error C2228: “.select_on_container_copy_construction”left must have class / struct / union </p> <p> please help me! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9369 Trac 1.4.3 anonymous Tue, 12 Nov 2013 08:11:41 GMT <link>https://svn.boost.org/trac10/ticket/9369#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9369#comment:1</guid> <description> <p> bug fix, vistual studio 2013 no support " Expression SFINAE " features. </p> <p> has_member_function_callable_with.hpp </p> <p> 219 219 struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl) 220 220 &lt;Fun, true&gt; 221 221 { 222 template&lt;class U&gt; 223 static BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME) 224 &lt;U&gt; Test(BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)&lt;U&gt;*); 225 </p> <blockquote> <p> 222 #ifdef BOOST_NO_SFINAE_EXPR 223 template&lt;class U&gt; 224 static decltype( boost::move_detail::declval&lt;Fun&gt;().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME() 225 , boost_intrusive_has_member_function_callable_with::yes_type()) 226 Test(Fun*); 227 #else 228 template&lt;class U&gt; 229 static BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME) 230 &lt;U&gt; Test(BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)&lt;U&gt;*); 231 #endif 232 </p> </blockquote> <p> 226 233 template &lt;class U&gt; 227 234 static boost_intrusive_has_member_function_callable_with::no_type Test(...); 228 235 </p> </description> <category>Ticket</category> </item> <item> <author>2810923@…</author> <pubDate>Tue, 12 Nov 2013 08:12:08 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9369 https://svn.boost.org/trac10/ticket/9369 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">vc12_fix_has_member_function_callable_with.patch</span> </li> </ul> Ticket Ion Gaztañaga Tue, 12 Nov 2013 16:13:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9369#comment:2 https://svn.boost.org/trac10/ticket/9369#comment:2 <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">duplicate</span> </li> </ul> <p> Duplicate of ticket <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 Thu, 21 Jan 2016 07:04:12 GMT attachment set https://svn.boost.org/trac10/ticket/9369 https://svn.boost.org/trac10/ticket/9369 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">has_member_function_callable_with.hpp</span> </li> </ul> Ticket anonymous Thu, 21 Jan 2016 07:06:32 GMT attachment set https://svn.boost.org/trac10/ticket/9369 https://svn.boost.org/trac10/ticket/9369 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">has_member_function_callable_with.2.hpp</span> </li> </ul> Ticket