[libcxx-commits] [libcxx] [libc++] P3391R2: `constexpr` integral overloads of `to_(w)string` (PR #205025)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 22 04:52:42 PDT 2026
philnik777 wrote:
> > Can we keep using the old symbols somehow? E.g. with `__attributed__((enable_if))`.
>
> Did you mean that making old versions still exposed in C++26 mode and mark new version with `__attributed__((enable_if))` (via `_LIBCPP_PREFERRED_OVERLOAD`)?
Yes, but the point here is to use the dylib symbol.
> This doesn't seem to work with GCC.
Just because it doesn't work with GCC doesn't mean we have to regress with clang.
> I guess the current approach is appropriate as we've been using something similar since #167472.
There the point was to make the function inlineable, which I don't think makes sense here.
https://github.com/llvm/llvm-project/pull/205025
More information about the libcxx-commits
mailing list