When can we omit the return type in a C++11 lambda?

前端 未结 3 797
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 00:02

As far as I know, in standard C++11 (not C++14), when omitting the return type of a lambda, its return type is deduced to be:

  1. The type of the
3条回答
  •  感动是毒
    2020-12-02 00:28

    Some C++14 rules are available in C++11 mode, when the compiler writers considered it too complicated to implement both rules at once.

提交回复
热议问题