We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果所有参数都需要隐式类型转换,该函数应当声明为非成员函数。本文把这个观点推广到类模板和函数模板。但是在类模板中,需要所有参数隐式转换的函数应当声明为友元并定义在类模板中。
https://harttle.land/2015/09/14/effective-cpp-46.html
The text was updated successfully, but these errors were encountered:
非常好的笔记,很多内容书中写的拗口,还得看你写的,支持作者!!!
Sorry, something went wrong.
No branches or pull requests
Effective C++ 46:需要类型转换时,应当在类模板中定义非成员函数 | Harttle Land
如果所有参数都需要隐式类型转换,该函数应当声明为非成员函数。本文把这个观点推广到类模板和函数模板。但是在类模板中,需要所有参数隐式转换的函数应当声明为友元并定义在类模板中。
https://harttle.land/2015/09/14/effective-cpp-46.html
The text was updated successfully, but these errors were encountered: