Public Member Functions | |
OFauto_ptr_ref (T *p) | |
constructs a OFauto_ptr_ref from a pointer. | |
Public Attributes | |
T * | ptr |
the pointer that it's all about |
OFauto_ptr<X> func() { return new X; } OFauto_ptr<X> local_var = func();
The compiler will add implicit casts to OFauto_ptr_ref to make this work:
OFauto_ptr<X> func() { return OFauto_ptr_ref<X>(new X); } OFauto_ptr<X> local_var = OFstatic_cast(OFauto_ptr_ref<X>, func());
Definition at line 58 of file ofaptr.h.
OFauto_ptr_ref< T >::OFauto_ptr_ref | ( | T * | p | ) | [inline, explicit] |