Closed abeimler closed 1 year ago
Thanks for filing this issue, and sorry for not responding sooner (notifications were off).
Unfortunately, as I mentioned in the README, this library at the moment does not support Clang since that compiler misses too many C++20 features. In particular excessive use typename
has been removed from C++20 and that feature is only supported as of Clang 16. But even Clang 16 is not able to successfully compile gcc's 12 libstdc++ ranges library.
The extra ;
after braces were a nice catch, not found by gcc, fixed! Thanks for mentioning that.
I am actively monitoring when Clang is getting a gcc 12 level of C++20 support, but at the moment it's just not there yet.
I've managed to add Clang support, although at the moment that requires Clang 16-SVN, available in packaged form here: https://apt.llvm.org/
Hello, I have some problems using the clang compiler. A lot of
error: missing 'typename' prior to dependent type name
-errors in the tests and other errors with ranges like:But also some errors in the library itself (in my other projects):
Also some warnings like
error: empty expression statement has no effect; remove unnecessary ';'
in some for-loops.Note: I'm using vcpkg and added the boost libraries for testing in my project...
cmake -B build -S . -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
https://github.com/abeimler/bit_set/actions/runs/3396267932/jobs/5647138570Environment: OS: Linux (Arch Linux 64-Bit) Compiler: Clang 13