在构建使用 tinyXml2 的项目后,我收到以下三个错误。错误显示在所附图像中。有问题的代码可以在 tinyXml2 的 xtree.cs 文件中找到,这里:
template<class _Iter>
void insert(_Iter _First, _Iter _Last)
{ // insert [_First, _Last) one at a time
_DEBUG_RANGE(_First, _Last);
for (; _First != _Last; ++_First)
{ // insert element as lvalue
const value_type& _Val = *_First;
insert(end(), _Val);
}
}
我正在使用(并且必须继续使用)VS2010
什么可能导致这些错误?
1) 错误 C2675:一元 '++':'std::string' 未定义此运算符或转换为预定义运算符可接受的类型
2)错误C2100:非法间接
3) 错误 C2440: 'initializing': 无法从 'std::string' 转换为 'const std::pair<_Ty1,_Ty2> &'
编辑:包含错误