[libcxx-commits] [libcxx] [libc++] P3391R2: `constexpr` integral overloads of `to_(w)string` (PR #205025)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 22 20:08:50 PDT 2026
frederick-vs-ja wrote:
> > If we expose dylib versions in C++26 mode and mark them `_LIBCPP_PREFERRED_OVERLOAD`, the additional `constexpr` versions won't wok at all. On the other hand, if we mark `constexpr` versions `_LIBCPP_PREFERRED_OVERLOAD`, the dylib versions wont't be used in C++26 mode even if they're exposed.
>
> Can't you define a function which just sees the dylib overloads and call that from the C++26 overloads if they're not constant evaluated?
I think I've figured out how to do this.
https://github.com/llvm/llvm-project/pull/205025
More information about the libcxx-commits
mailing list