jarro2783 / cxxopts

Lightweight C++ command line option parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem compiling with C++20

bsergean opened this issue · comments

When building with clang-12 on macOS, with XCode 12, I am getting this error:

_deps/cxxopts-src/include/cxxopts.hpp:349:39: error: invalid operands to binary expression ('const char8_t [8]' and 'const std::string' (aka 'const basic_string<char>'))
    : OptionSpecException(u8"Option " + LQUOTE + option + RQUOTE + u8" already exists")
                          ~~~~~~~~~~~ ^ ~~~~~~

I think that C++20 concatenation rules have changed.

Actually this works well in c04f8a5 / but compilation was broken in v2.1.2

This is likely to become a stale ticket, closing it.