摘要: Effective C++ Third Edition 改善程序与设计的55个具体做法 导读 除非有理由允许构造函数被用于隐式类型转换,否则‘我’会把它声明为explicit(阻止隐式类型转换) class tmp{ public: explicit tmp(int a) : numa(a){ } 阅读全文
posted @ 2023-03-28 23:08 WuYunTaXue 阅读(34) 评论(0) 推荐(0) 编辑