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

Update item8.md #189

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/3.MovingToModernCpp/item8.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ auto result3 = lockAndCall(f3, f3m, nullptr); //没问题

**记住**
+ 优先考虑`nullptr`而非`0`和`NULL`
+ 避免重载指针和整型
+ 避免重载指针和整型(这个意思是如果函数要接收指针作为参数,就不要创建新的重载函数来接收整形以兼容NULL和0--在这个函数中,将NULL和0当做强制转换为指针)

Loading