[libcxx-commits] [libcxx] [libc++][math] Implement C++23 (parts of) P0533: constexpr `std::div()` (PR #104633)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 17 06:45:58 PDT 2024
PaulXiCao wrote:
> since this doesn't work when calling the functions without qualifiers and breaks `using namespace std;`
AFAIK This is a general issue if one mangles two functions with different behavior from different namespaces with the same name (e.g. `::div()` and `std::div()`). Is it a requirement that this works?
One could argue that `::div()` is the C version (aka runtime only), and its `constexpr` pendant is available via `std::div()`.
https://github.com/llvm/llvm-project/pull/104633
More information about the libcxx-commits
mailing list