Qt中的关键字----explicit
摘要:转自http://blog.csdn.net/libaineu2004/article/details/19491579 关键字 explicit 可以禁止“单参数构造函数”被用于自动类型转换,主要用于 "修饰 "构造函数. 指明构造函数只能显示使用,目的是为了防止不必要的隐式转化. 关键字 exp
阅读全文
posted @ 2016-05-30 15:47
posted @ 2016-05-30 15:47