Q: /usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’ without object
A: 修改文件/usr/include/c++/7/bits/basic_string.tcc:
中1067行__p->_M_set_sharable();
为(*__p)._M_set_sharable();
参考:
https://github.com/traveller59/spconv/issues/42#issuecomment-688808203