aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormanoprenko <manoprenko@yandex-team.ru>2022-02-10 16:47:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:13 +0300
commitb1d9a1cf256f01e862ff7f3306d0c80684af6b39 (patch)
treef166276f22208ef2eb9861e4573a4da766121c51 /util
parent984590e9d9d7c0f912885d93ae78be402ae7b4f4 (diff)
downloadydb-b1d9a1cf256f01e862ff7f3306d0c80684af6b39.tar.gz
Restoring authorship annotation for <manoprenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/datetime/base.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/datetime/base.h b/util/datetime/base.h
index 5e902b8f63..df08221e6a 100644
--- a/util/datetime/base.h
+++ b/util/datetime/base.h
@@ -789,11 +789,11 @@ inline TDuration operator*(TDuration d, float t) noexcept {
return d * static_cast<double>(t);
}
-template <class T>
+template <class T>
inline TDuration operator*(T t, TDuration d) noexcept {
- return d * t;
-}
-
+ return d * t;
+}
+
template <class T, std::enable_if_t<!std::is_same<TDuration, T>::value, int> = 0>
constexpr TDuration operator/(const TDuration& d, const T& t) noexcept {
return TDuration::FromValue(d.GetValue() / t);