[libcxx-commits] [libcxx] [libcxx] Optimize std::generate for segmented iterators (PR #163006)
Connector Switch via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 16 00:50:44 PDT 2025
c8ef wrote:
> > The final issue is that auto&& is unavailable in C++ standards prior to C++14. : (
>
> `[]<class T>(T&& v) { ... }` should work.
```
<source>:2:17: warning: explicit template parameter list for lambdas is a C++20 extension [-Wc++20-extensions]
2 | auto fn = []<class T>(T&& v) { return v + 1; };
```
Get a clang ICE on c++11 mode: https://godbolt.org/z/P4j6r5cra 😆
https://github.com/llvm/llvm-project/pull/163006
More information about the libcxx-commits
mailing list