LuaBind和Boost 1.35兼容性问题的解决



修改如下文件
luabind/luabind/detail/policy.hpp
1280行:

namespace luabind { namespace
{
#if defined(__BORLANDC__) || (BOOST_VERSION >= 103400 && defined(__GNUC__))
# if (BOOST_VERSION >= 103500 && __GNUC__ >= 4 && __GNUC_MINOR__ >= 2)

static boost::arg<0> return_value;

static boost::arg<0> result;

# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>&

# else
static inline boost::arg<0> return_value()
{
return boost::arg<0>();
}

static inline boost::arg<0> result()
{
return boost::arg<0>();
}
//# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>(*)()
# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>(*)()
# endif

#elif defined(BOOST_MSVC) || defined(__MWERKS__)
static boost::arg<0> return_value;
static boost::arg<0> result;
# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>
#else
boost::arg<0> return_value;
boost::arg<0> result;
# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>
#endif
}}

#endif // LUABIND_POLICY_HPP_INCLUDED


luabind/src/object_rep.cpp
开头两个包含头文件的顺序颠倒一下:
#include <luabind/detail/class_rep.hpp>
#include <luabind/detail/object_rep.hpp>



即可。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值