Rationale behind deleting lambda assignment operator?

后端 未结 0 1933
终归单人心
终归单人心 2020-12-13 19:46

I just learned that a (even mutable) lambda in C++ is not assignable unless it has empty captures (c.f. ClosureType::operator=).

Example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题