writer.cc: In member function `std::string
Writer::className2cc(const
std::string&)':
writer.cc:64: error: ambiguous overload for 'operator+=' in
'
(&res)->std::basic_string<_CharT, _Traits,
_Alloc>::operator+=(_CharT) [with
_CharT = char, _Traits = std::char_traits<char>, _Alloc
=
std::allocator<char>](46) +=
(+this->Writer::registry)->PropRegistry::operator[]
(const
std::string&)((&string("SRC_EXTENSION",
(&allocator<char>()))))'
/usr/include/g++/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/g++/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/g++/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>]
Fix is to change line 64:
return (res += '.') +=
std::string( registry["SRC_EXTENSION"] );