Replies: 2 comments 2 replies
-
@chenshuo 陈硕大大可以来回答一下么 |
Beta Was this translation helpful? Give feedback.
0 replies
-
它是静态类型检查,当然不能完全代替 它的作用是让编译器在 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
相关文件
muduo/base/Types.h
我试过很多情况,这里的
implicit_cast
并不能在编译期间发现问题,都在运行时dynamic_cast
才检查出了错误。g++ version 9.4
。Beta Was this translation helpful? Give feedback.
All reactions