.select_on_container_copy_construction左边的c++ boost::containe

C++ boost::container::vector left of .select_on_container_copy_construction must have class/struct/union

本文关键字:c++ boost containe construction on container copy select 左边      更新时间:2023-10-16

正如标题所说,我试图在可执行文件中使用boost::container::vector,但我得到以下错误"剩下的"。Select_on_container_copy_construction '必须有class/struct/union/inside文件

has_member_function_callable_with.hpp

下面是产生错误

的代码
   template< class F , size_t N =sizeof((boost::move_detail::declval<F>().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(),0))>
     struct BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
     {
        boost_intrusive_has_member_function_callable_with::yes_type dummy;
        BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)(int);
     };

我使用Visual studio 2013 Ultimate作为编译器

对于那些像我一样发现这个线程的人来说,这似乎是一个boost 1.55.0问题。升级到1.59.0对我的情况和其他情况(也发布在stackoverflow上)有帮助