Add missing + operator to time_point_sec
time_point_sec had an operator defined for time_point_sec - microseconds, but not one for time_point_sec + microseconds. Now it does.
This commit is contained in:
parent
c38479c6ae
commit
95c2c461ac
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ namespace fc {
|
|||
time_point_sec operator +( uint32_t offset )const { return time_point_sec(utc_seconds + offset); }
|
||||
time_point_sec operator -( uint32_t offset )const { return time_point_sec(utc_seconds - offset); }
|
||||
|
||||
friend time_point operator + ( const time_point_sec& t, const microseconds& m ) { return time_point(t) + m; }
|
||||
friend time_point operator - ( const time_point_sec& t, const microseconds& m ) { return time_point(t) - m; }
|
||||
friend microseconds operator - ( const time_point_sec& t, const time_point_sec& m ) { return time_point(t) - time_point(m); }
|
||||
friend microseconds operator - ( const time_point& t, const time_point_sec& m ) { return time_point(t) - time_point(m); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue