use auto_ptr instead of epics_auto_ptr where applicable

This commit is contained in:
Michael Davidsaver
2016-04-28 09:20:13 -04:00
parent 79f1257f1d
commit 05c347434b
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -159,13 +159,13 @@ ca_client_context::ca_client_context ( bool enablePreemptiveCallback ) :
this->localPort = htons ( tmpAddr.ia.sin_port );
}
epics_auto_ptr < CallbackGuard > pCBGuard;
std::auto_ptr < CallbackGuard > pCBGuard;
if ( ! enablePreemptiveCallback ) {
pCBGuard.reset ( new CallbackGuard ( this->cbMutex ) );
}
// multiple steps ensure exception safety
this->pCallbackGuard = pCBGuard;
std::swap(this->pCallbackGuard, pCBGuard);
}
ca_client_context::~ca_client_context ()