This is used as to determine how a CountedPtr performs castin between pointer types internally. More...
#include <countedptr.h>
Static Public Member Functions | |
static ReturnPointer | Cast (OriginalPointer) |
Do not cast, rather fail. More... | |
This is used as to determine how a CountedPtr performs castin between pointer types internally.
The default implementation for internal casting in the CountedPtr Simply throws an exception.
This Should never actually get called. Though it is the default template instance the default ReferenceCountTraits uses the CastNoneError specialization of this template.
The ReferenceCountTraits for the CountedPtr<Type> should declare what kind castint should be used by declaring an enumeration called 'IsCastable' and assigning the desired casting type.
ReturnPointer | The type of pointer that the functions on the CountedPtr must return |
OriginalPointer | The actual type the CountedPtr is maintaining as a target. |
CountedPointerCastingState | Any value in the CountedPointerCastingState to indicate kind of casting. |
For any case that uses CastNoneError including the default.
Definition at line 78 of file countedptr.h.
|
inlinestatic |
Do not cast, rather fail.
Always | throws a 0 |
Definition at line 523 of file countedptr.h.