aboutsummaryrefslogtreecommitdiffstats
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
commit37d83af1adc283c46c7fb5874e40b9c19fa90819 (patch)
tree339adc63bce23800021202ae4a8328a843dc447a
parentb1d9a1cf256f01e862ff7f3306d0c80684af6b39 (diff)
downloadydb-37d83af1adc283c46c7fb5874e40b9c19fa90819.tar.gz
Restoring authorship annotation for <manoprenko@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--contrib/libs/ya.make2
-rw-r--r--util/datetime/base.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/ya.make b/contrib/libs/ya.make
index 1dab4d00c9..9c4640fdcf 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 df08221e6a..5e902b8f63 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);