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

explicit关键字 | singheart's blog #8

Open
xinjiempolde opened this issue May 31, 2022 · 0 comments
Open

explicit关键字 | singheart's blog #8

xinjiempolde opened this issue May 31, 2022 · 0 comments

Comments

@xinjiempolde
Copy link
Owner

http://singhe.art/2022/05/31/explicit%E5%85%B3%E9%94%AE%E5%AD%97/#more

本文参考自知乎 C++中explicit常用于构造函数前,防止因隐式转换而导致错误的发生。本文将通过构造函数带有和不带有explicit两个例子,从而说明explicit的作用

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

No branches or pull requests

1 participant