We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49cab8 commit 8a9000eCopy full SHA for 8a9000e
include/sot/core/trajectory.hh
@@ -98,7 +98,12 @@ class SOT_CORE_EXPORT timestamp {
98
if ((secs_ != other.secs_) || (nsecs_ != other.nsecs_)) return false;
99
return true;
100
}
101
- friend std::ostream &operator<<(std::ostream &stream, const timestamp &ats) {
+ timestamp &operator=(const timestamp &other) {
102
+ secs_ = other.secs_;
103
+ nsecs_ = other.nsecs_;
104
+ return *this;
105
+ }
106
+ friend std::ostream &operator<<(std::ostream &stream, const timestamp &ats) {
107
stream << ats.secs_ + 0.000001 * (long double)ats.nsecs_;
108
return stream;
109
0 commit comments