RefSnapshot operator

move into class definition to hopefully appease MSVC
This commit is contained in:
Michael Davidsaver
2017-08-30 17:04:02 -05:00
parent 08f50e56ac
commit a152a64f1c
2 changed files with 10 additions and 13 deletions
+6 -9
View File
@@ -95,17 +95,14 @@ public:
counts.swap(o.counts);
}
friend RefSnapshot operator-(const RefSnapshot& lhs, const RefSnapshot& rhs);
/** Compute the difference lhs - rhs
*
* Returned RefSnapshot has Count::current=lhs.current
* and Count::delta= lhs.current - rhs.current
*/
RefSnapshot operator-(const RefSnapshot& rhs) const;
};
/** Compute the difference lhs - rhs
*
* Returned RefSnapshot has Count::current=lhs.current
* and Count::delta= lhs.current - rhs.current
*/
epicsShareFunc
RefSnapshot operator-(const RefSnapshot& lhs, const RefSnapshot& rhs);
//! Print all counters with a non-zero delta
epicsShareFunc
std::ostream& operator<<(std::ostream& strm, const RefSnapshot& snap);