Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yangyagami opened this issue Jul 16, 2023 · 2 comments · Fixed by #280

Comments

@yangyagami
Copy link

问题描述

“我们已经提过 auto 不能用于函数形参进行类型推导” 这里是否是表述错误呢?

@Ding-yixia
Copy link

是的,他这里应该有点问题,C++20 之后可以进行函数形参类型推导

@frederick-vs-ja
Copy link
Contributor

C++14 中 auto 已经可以用于函数函数模板形参推导,只是局限于泛型 lambda 中。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants