## 17.8 Overloading Conversion Operators

- Convert from a user-defined type
- An operator must be supplied for each type to convert to
- Definition:
  - Must be a member function
  - Has a type as its name
  - Has no return type
  - Takes no arguments
- May be used implicitly, or called explicitly (cast)

Note: The compiler performs at most one level of user-defined type conversion when matching an overloaded function.

prev |top |next