I get the following three errors after building a project that uses tinyXml2. The errors are shown in the attached image. The offending code can be found in tinyXml2's xtree.cs file, here:
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);
}
}
I'm using (and must continue to use) VS2010
What could cause these errors?
1) error C2675: unary '++':'std::string' does not define this operator or a conversion to a type acceptable to the predefined operator
2) error C2100: illegal indirection
3)error C2440: 'initializing': cannot convert from 'std::string' to 'const std::pair<_Ty1,_Ty2> &'
Edit: included errors