Can you use keyword explicit to prevent automatic conversion of method parameters?

后端 未结 8 1543
心在旅途
心在旅途 2020-12-04 17:18

I know you can use C++ keyword \'explicit\' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion

8条回答
提交回复
热议问题