Skip to content

Conversation

frederick-vs-ja
Copy link
Contributor

resolve #266

Description

We didn't explicitly say auto can't used for function parameter type deduction. Also, such deduction is available in generic lambdas since C++14.

Change List

  • Resolve error content of function parameter type deduction

Reference


说明

我们没有明确说过 auto 不能用于函数参数类型推导。另外, C++14 起这种推导已经可用于 lambda 表达式。

变化箱单

  • 解决了关于函数参数推导的描述性错误

参考文献

@changkun changkun merged commit 78b1cdf into changkun:master May 20, 2024
@frederick-vs-ja frederick-vs-ja deleted the auto-parameters branch May 21, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

第二章 尾返回类型推导 “我们已经提过 auto 不能用于函数形参进行类型推导”

2 participants