[libcxx-commits] [libcxx] [libc++][NFC] Update <any> to a more modern code style (PR #174619)
Alexander Kornienko via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 20 01:17:07 PST 2026
alexfh wrote:
> This boils down to the following (https://gcc.godbolt.org/z/oTfWdGvnd):
>
> ```
> #include <any>
>
> struct Foo {
> Foo(std::any v);
> };
>
> template <typename T, bool = std::is_copy_constructible<T>::value>
> void f(T) {}
>
> void q(Foo x) { f(x); }
> ```
Filed https://github.com/llvm/llvm-project/issues/176877
https://github.com/llvm/llvm-project/pull/174619
More information about the libcxx-commits
mailing list