[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 04:44:24 PDT 2026


frederick-vs-ja 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`)? This doesn't seem to work with GCC.

I guess the current approach is appropriate as we've been using something similar since #167472.

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


More information about the libcxx-commits mailing list