Is my book's discussion of lambda return types wrong?

后端 未结 5 486
误落风尘
误落风尘 2020-12-07 00:59

My book says this:

Lambdas with function bodies that contain anything other than a single return statement that do not specify a return type return vo

5条回答
  •  日久生厌
    2020-12-07 01:26

    Draft n3485 indicates that if the compiler can unambiguously determine the return type it will allow for the lambda to not specify it.

提交回复
热议问题