auto_ptr has an explicit cast to bool operator.  No need for get().