diff --git a/src/libCom/cppStd/epicsMemory.h b/src/libCom/cppStd/epicsMemory.h index 4f5692327..ed2fb1a5b 100644 --- a/src/libCom/cppStd/epicsMemory.h +++ b/src/libCom/cppStd/epicsMemory.h @@ -37,15 +37,16 @@ private: }; template < class T, epics_auto_ptr_type PT > -inline epics_auto_ptr::epics_auto_ptr ( T *pIn ) : +inline epics_auto_ptr::epics_auto_ptr ( T *pIn ) throw () : p ( pIn ) {} template < class T, epics_auto_ptr_type PT > -inline epics_auto_ptr::epics_auto_ptr ( const epics_auto_ptr & ap ) : +inline epics_auto_ptr:: + epics_auto_ptr ( const epics_auto_ptr & ap ) throw () : p ( ap.release() ) {} template < class T, epics_auto_ptr_type PT > -inline void epics_auto_ptr::destroyTarget () +inline void epics_auto_ptr::destroyTarget () throw () { if ( PT == eapt_scalar ) { delete this->p; @@ -56,13 +57,14 @@ inline void epics_auto_ptr::destroyTarget () } template < class T, epics_auto_ptr_type PT > -inline epics_auto_ptr::~epics_auto_ptr () +inline epics_auto_ptr::~epics_auto_ptr () throw () { this->destroyTarget (); } template < class T, epics_auto_ptr_type PT > -inline epics_auto_ptr & epics_auto_ptr::operator = ( epics_auto_ptr & rhs ) +inline epics_auto_ptr & epics_auto_ptr::operator = + ( epics_auto_ptr & rhs ) throw () { if ( &rhs != this) { this->destroyTarget (); @@ -72,31 +74,31 @@ inline epics_auto_ptr & epics_auto_ptr::operator = ( epics_auto_ptr< } template < class T, epics_auto_ptr_type PT > -inline T & epics_auto_ptr::operator * () const +inline T & epics_auto_ptr::operator * () const throw() { return * this->p; } template < class T, epics_auto_ptr_type PT > -inline T * epics_auto_ptr::operator -> () const +inline T * epics_auto_ptr::operator -> () const throw () { return this->p; } template < class T, epics_auto_ptr_type PT > -T & epics_auto_ptr::operator [] ( unsigned index ) const +T & epics_auto_ptr::operator [] ( unsigned index ) const throw () { return this->p [ index ]; } template < class T, epics_auto_ptr_type PT > -inline T * epics_auto_ptr::get () const +inline T * epics_auto_ptr::get () const throw () { return this->p; } template < class T, epics_auto_ptr_type PT > -inline T * epics_auto_ptr::release () +inline T * epics_auto_ptr::release () throw () { T *pTmp = this->p; this->p = 0; @@ -104,7 +106,7 @@ inline T * epics_auto_ptr::release () } template < class T, epics_auto_ptr_type PT > -inline void epics_auto_ptr::reset ( T * pIn ) +inline void epics_auto_ptr::reset ( T * pIn ) throw () { this->destroyTarget (); this->p = pIn;