diff --git a/src/libCom/osi/osiTime.h b/src/libCom/osi/osiTime.h index 833cd962e..fc5137197 100644 --- a/src/libCom/osi/osiTime.h +++ b/src/libCom/osi/osiTime.h @@ -133,6 +133,7 @@ public: // osiTime (); osiTime (const osiTime &t); + osiTime & operator = (const osiTime &rhs); // // convert to and from EPICS TS_STAMP format @@ -287,6 +288,13 @@ inline osiTime::osiTime () : secPastEpoch(0u), nSec(0u) {} inline osiTime::osiTime (const osiTime &t) : secPastEpoch (t.secPastEpoch), nSec (t.nSec) {} +inline osiTime & osiTime::operator = ( const osiTime &t ) +{ + this->secPastEpoch = t.secPastEpoch; + this->nSec = t.nSec; + return *this; +} + inline osiTime osiTime::operator - (const double &rhs) const { return osiTime::operator + (-rhs);