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

2015/09/14/effective-cpp-46 #173

Open
utterances-bot opened this issue Jun 13, 2023 · 1 comment
Open

2015/09/14/effective-cpp-46 #173

utterances-bot opened this issue Jun 13, 2023 · 1 comment

Comments

@utterances-bot
Copy link

Effective C++ 46:需要类型转换时,应当在类模板中定义非成员函数 | Harttle Land

如果所有参数都需要隐式类型转换,该函数应当声明为非成员函数。本文把这个观点推广到类模板和函数模板。但是在类模板中,需要所有参数隐式转换的函数应当声明为友元并定义在类模板中。

https://harttle.land/2015/09/14/effective-cpp-46.html

Copy link

非常好的笔记,很多内容书中写的拗口,还得看你写的,支持作者!!!

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

No branches or pull requests

2 participants