这个特性一般是给写库的人用的,普通人是用不到的
chatgpt说的(我没查证):
P0847R7 明确说明:
Capturing this and also deducing this as a parameter is ill-formed, because this in the lambda becomes ambiguous and could mean the enclosing this or the lambda's this.
【 在 hyperLee 的大作中提到: 】
: 现在lambda都可以这么写了吗? 捕获this的时候, 不需要首先指定&, 还是=?
: this auto 是什么写法?
: 我感觉我老了.
: ...................
--
FROM 114.254.115.*