Hello everybody,
how can I test an auto_ptr/shared_ptr to NULL or zero?
I have the following situation:
std::auto_ptr<a ce__AbstractEve nt> e(DequeueEvent( ));
if (e == NULL) return;
....
where ace__AbstractEv ent is an abstract class to model I/O events
and the function DequeueEvent() returns a pointer to ace__AbstractEv ent;
ace__AbstractEv ent * DequeueEvent();
coming from...