InterviewGuide icon indicating copy to clipboard operation
InterviewGuide copied to clipboard

C++语法 39条勘误

Open sterben-01 opened this issue 1 year ago • 1 comments

39条中提到了:

explicit 关键字作用于单个参数的构造函数

explicit并不仅限于修饰单个参数的构造函数。这一条应去除。尤其是在C++11后。 参考:https://zh.cppreference.com/w/cpp/language/explicit

同时上面的文字中:

explicit关键字用来修饰类的构造函数,被修饰的构造函数的类,不能发生相应的隐式类型转换,只能以显 的方式进行类型转换

加粗的为错别字。

sterben-01 avatar Mar 21 '23 01:03 sterben-01

thx

forthespada avatar May 05 '23 02:05 forthespada