Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch2 does not appear to work with C++23 #2852

Closed
gmcode opened this issue Apr 4, 2024 · 0 comments
Closed

Catch2 does not appear to work with C++23 #2852

gmcode opened this issue Apr 4, 2024 · 0 comments

Comments

@gmcode
Copy link

gmcode commented Apr 4, 2024

Description
Building Catch2 with C++23 (using CMake) results in build errors. It would be nice if Catch2 worke with C++23. The error appears to be because C++23 requires the full definition of a class to be defined before it can be deleted and Catch2 seems to violate this. To see the errors build Catch2 with C++23. I saw the errors using clang trunk (clang 19) against the gnu 13.2 C/C++ Runtime.
cmake -G"Ninja" -S Catch2 -B build-Catch2 -DCMAKE_CXX_COMPILER=c++23
cmake --build build-Catch2
Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant