constexpr exception + constexpr format = ❤️ compiler-explorer.com/z/n9j7rMaKd ```c++ CONSTEVAL_TEST_CASE("nothing make sense") { CHECK(10 < 5); } ``` will yield error message: ``` error: uncaught exception of type 'failed_check'; 'what()': 'check failed at example.cpp:32 expected: 10 < 5' ```
0 reposts4 likes