最終出錯的位置是:lua
#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(!=)it
我使用 luabind-0.9.0 、boost_1_5八、vc120 也會出現上述狀況;
變換到 boost_1_5四、vc110 後就終於編譯成功了編譯