Don't want to use the constructor to type conversion
Because c + + will automatically call the appropriate constructor to type conversion, I don't think it will be, will be no overflow,
The compiler can you help me check
You can do this?
CodePudding user response:
C + + is not recommended that casts, why get so highCodePudding user response:
dynamic_cast