C++之explicit构造函数
在C++中,explicit关键字用来修饰类的构造函数,被修饰的构造函数的类,不能发生相应的隐式类型转换,只能以显示的方式进行类型转换。MSDN上的解释:This keyword is a declaration specifier that can only be applied to in-class constructor declarations . An explicit const