 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
In
order for the conversion function to be called explicitly
|
|
|
|
when
it is a typedef name, that name must be in the global
|
|
|
namespace
and cannot be hidden within the class.
|
|
|
name obj("sue smith");
|
|
const char* p;
|
|
|
//Three examples of explicit
conversions:
|
|
p = (pchar)obj;
|
|
p = pchar(obj);
|
|
p = static_cast<pchar>(obj);
|
|