Home > Software engineering >  Casting can be overloaded?
Casting can be overloaded?

Time:11-18

I hope only overloading casts,
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 high

CodePudding user response:

dynamic_cast
  • Related