I was able to get past that error by changing that line of code to call the string::append member instead of the operator+= which it is confused about.
i.e.
140: s.append(params[0][params[0].size()-1]);
There seems to be other problems though -- is this project defunct?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys,
Slack 10.1, g++ 3.3.4
Validator.cpp:140: error: ambiguous overload for 'operator+=' in 's +=
(+(+params)->XmlRpc::XmlRpcValue::operator[](0))->XmlRpc::XmlRpcValue::operator[](((+(+params)->XmlRpc::XmlRpcValue::operator[](0))->XmlRpc::XmlRpcValue::size()
- 1))'
/usr/include/c++/3.3.4/bits/basic_string.h:465: error: candidates are:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator+=(const std::basic_string<_CharT, _Traits,
_Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc =
std::allocator<char>]
/usr/include/c++/3.3.4/bits/basic_string.h:468: error:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator+=(const _CharT*) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>] <near match>
/usr/include/c++/3.3.4/bits/basic_string.h:471: error:
std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
_Traits, _Alloc>::operator+=(_CharT) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]
make[1]: *** [Validator] Error 1
make[1]: Leaving directory `/home/andrej/source/xmlrpc++0.7/test'
make: *** [tests] Error 2
Any ideas how to fix this? :*)
Cheers,
Tink
I was able to get past that error by changing that line of code to call the string::append member instead of the operator+= which it is confused about.
i.e.
140: s.append(params[0][params[0].size()-1]);
There seems to be other problems though -- is this project defunct?