fixed inappropriate use of const

This commit is contained in:
Jeff Hill
2003-02-20 17:28:17 +00:00
parent 3f680362bb
commit dd82684617
+2 -2
View File
@@ -21,7 +21,7 @@ public:
explicit epics_auto_ptr ( T *p = 0 );
epics_auto_ptr ( const epics_auto_ptr<T> & rhs );
~epics_auto_ptr();
epics_auto_ptr<T> & operator = ( const epics_auto_ptr<T> & rhs );
epics_auto_ptr<T> & operator = ( epics_auto_ptr<T> & rhs );
T & operator * () const;
T * operator -> () const;
T * get () const;
@@ -46,7 +46,7 @@ inline epics_auto_ptr<T>::~epics_auto_ptr ()
}
template < class T >
inline epics_auto_ptr<T> & epics_auto_ptr<T>::operator = ( const epics_auto_ptr<T> & rhs )
inline epics_auto_ptr<T> & epics_auto_ptr<T>::operator = ( epics_auto_ptr<T> & rhs )
{
if ( &rhs != this) {
delete this->p;