Class ConstPointerBase is an abstract base class used by template class ConstPointer<TYPE> for type-safe conversion between various pointer types. It forms the base of the RTTI conversion hierarchy for pointers. Both the non-const pointer base class and the const pointer class are subclasses of the const pointer base class. This structure ensures that RTTI conversion of pointers from const to const, non-const to non-const, and non-const to const work as expected but that conversion from const to non-const fail at compile-time.
- See also
- tbox::ConstPointer
-
tbox::PointerBase
-
tbox::Pointer