[libcxx-commits] [libcxx] [libc++] Implement P4206R0 Revert string support in std::constant_wrapper (PR #203338)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 11 19:07:49 PDT 2026
================
----------------
frederick-vs-ja wrote:
As a workaround for Clang 22, we can add `auto` into the return type for all compound assignment operators.
```diff
- -> constant_wrapper<(_Tp::value += _Rp::value)> {
+ -> constant_wrapper<auto(_Tp::value += _Rp::value)> {
```
Example: https://godbolt.org/z/xnP1Wq86s.
https://github.com/llvm/llvm-project/pull/203338
More information about the libcxx-commits
mailing list