catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.51k stars 3.04k forks source link

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

Closed gmcode closed 5 months ago

gmcode commented 5 months ago

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