[libcxx-commits] [libcxx] [libc++][math] Add constexpr for std::abs() (PR #146633)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 5 00:55:35 PDT 2025


philnik777 wrote:

@arjunUpatel Yes, the problem is that the libc's overload is used. However, we support a lot of libcs, so there is no way for you to just add constexpr support to all of them. The compiler can already add `constexpr`, since they are builtins, so it should make these overloads `constexpr` in C++23 IMO.

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


More information about the libcxx-commits mailing list