17.8 Overloading Conversion Operators
Conversion
to
a user-defined type (cont.):
If addition is
not
a member function, then this works too:
b = 2 + a;
Use
explicit
keyword to inhibit implicit conversions (
coercion
s)
prev
|
top
|
next