error C2665: “boost::operator !=”: 4 个重载中没有一个可以转换所有参数类型
手心的水 2015-03-12 07:34:24 #define LUABIND_OPERATOR_ADL_WKND(op) \
inline bool operator op( \
basic_iterator<basic_access> const& x \
, basic_iterator<basic_access> const& y) \
{ \
return boost::operator op(x, y); \
} \
\
inline bool operator op( \
basic_iterator<raw_access> const& x \
, basic_iterator<raw_access> const& y) \
{ \
return boost::operator op(x, y); \
}
//错误指向以下两行
LUABIND_OPERATOR_ADL_WKND(==)
LUABIND_OPERATOR_ADL_WKND(!=)
错误信息如下
error C2665: “boost::operator !=”: 4 个重载中没有一个可以转换所有参数类型
15> D:\boost_1_57_0\boost/function/function_base.hpp(756): 可能是“bool boost::operator !=(boost::detail::function::useless_clear_type *,const boost::function_base &)”
15> D:\boost_1_57_0\boost/function/function_base.hpp(744): 或 “bool boost::operator !=(const boost::function_base &,boost::detail::function::useless_clear_type *)”
15> D:\boost_1_57_0\boost/function/function_base.hpp(827): 或 “bool boost::operator !=<luabind::detail::basic_iterator<luabind::detail::basic_access>>(Functor,const boost::function_base &)”