diff options
author | manoprenko <manoprenko@yandex-team.ru> | 2022-02-10 16:47:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:13 +0300 |
commit | b1d9a1cf256f01e862ff7f3306d0c80684af6b39 (patch) | |
tree | f166276f22208ef2eb9861e4573a4da766121c51 | |
parent | 984590e9d9d7c0f912885d93ae78be402ae7b4f4 (diff) | |
download | ydb-b1d9a1cf256f01e862ff7f3306d0c80684af6b39.tar.gz |
Restoring authorship annotation for <manoprenko@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | contrib/libs/ya.make | 2 | ||||
-rw-r--r-- | util/datetime/base.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/ya.make b/contrib/libs/ya.make index 9c4640fdcf..1dab4d00c9 100644 --- a/contrib/libs/ya.make +++ b/contrib/libs/ya.make @@ -268,7 +268,7 @@ RECURSE( pdqsort pffft pfr - picohttpparser + picohttpparser #pire/ut pixman poco 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); |