Item 2:Prefer C++-style casts.(More Effective C++)
摘要:
static_cast has basically the same power and meaning as the general-purpose C-style cast. It also has the same kind of restrictions. For example, you can't cast a struct into an int or a double into a pointer using static_cast any more than you can with a C-style cast. Furthermore, static_cast c 阅读全文
posted @ 2011-06-03 14:32 Ray Z 阅读(233) 评论(0) 推荐(0) 编辑