Open ZichaoNickFox opened 1 year ago
Fixes that works on Ubuntu Clang 14, can make it a PR: https://github.com/alandefreitas/matplotplusplus/compare/master...WildRackoon:matplotplusplus:fix-cpp20
Just replacing char
/string
with char8_t
/u8string
doesn't look like a general solution because char8_t
is a new type breaking the API.
I'm not sure what the best solution for this is yet. This is not the only library where u8
string literals broke things. All solutions look suboptimal because this is something where C++20 is not retroactively compatible with C++17.
@alandefreitas As a fix is already present on master, could we get a new release? Or is it intended to directly using master branch as tag (or a commit tag).
Wow, that was quick. Thank you very much :)
Bug category
Describe the bug
c++ 20 unsupport value u8 string to std::string https://stackoverflow.com/questions/56833000/c20-with-u8-char8-t-and-stdstring
Steps to Reproduce
Output external/matplotplusplus/source/matplot/core/line_spec.cpp(76): error C2679: binary '=': no operator found which takes a right-hand operand of type 'const char8_t [6]' (or there is no acceptable conversion)
Platform
Environment Details:
Additional context