[libcxx-commits] [libcxx] [libc++][math] Fix testing `constexpr` at compile time (PR #105984)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 27 02:46:28 PDT 2024


https://github.com/philnik777 requested changes to this pull request.

I think you're misunderstanding something here. When an `assert()` fails at compile-time it results in the `static_assert` argument not being a constant expression: https://godbolt.org/z/19aYEdGEr. That's working just fine and it's how we test all the `constexpr` functions.

https://github.com/llvm/llvm-project/pull/105984


More information about the libcxx-commits mailing list