git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
76a5f03
)
document timefunc api
author
Philipp Gesang
<philipp.gesang@intra2net.com>
Thu, 4 Apr 2019 15:23:08 +0000 (17:23 +0200)
committer
Philipp Gesang
<philipp.gesang@intra2net.com>
Thu, 4 Apr 2019 15:23:08 +0000 (17:23 +0200)
src/timefunc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/timefunc.cpp
b/src/timefunc.cpp
index
e41308f
..
0883055
100644
(file)
--- a/
src/timefunc.cpp
+++ b/
src/timefunc.cpp
@@
-1143,6
+1143,14
@@
namespace clock {
return *this;
}
+ /*
+ * @note This operator is an up-assignment from a type containing less
+ * information than the structure assigned from. Since the
+ * operator can only be two valued we must normalize the remaining
+ * fields to the default clock. When assigning from non-default
+ * clocks, use the appropriate constructor and pass it the desired
+ * id and variant so as to assign the result.
+ */
Time &
Time::operator= (struct timespec ts) NOEXCEPT
{