diff options
author | a-square <[email protected]> | 2022-02-10 16:50:24 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:24 +0300 |
commit | 34f3f9bd7972f67d913075206081554a3e39a0de (patch) | |
tree | 89df462bfae95c8d9063871a9eae476233768b09 /util/str_stl.h | |
parent | e7879def805c52076a0b162a0270dfb229379d4e (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r-- | util/str_stl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/str_stl.h b/util/str_stl.h index f1e137181d2..f5c9d732ca1 100644 --- a/util/str_stl.h +++ b/util/str_stl.h @@ -168,10 +168,10 @@ namespace NHashPrivate { struct TPairHash<TFirst, TSecond, true> { template <class T> inline size_t operator()(const T& pair) const { - // maps have TFirst = const TFoo, which would make for an undefined specialization - using TFirstClean = std::remove_cv_t<TFirst>; - using TSecondClean = std::remove_cv_t<TSecond>; - return CombineHashes(THash<TFirstClean>()(pair.first), THash<TSecondClean>()(pair.second)); + // maps have TFirst = const TFoo, which would make for an undefined specialization + using TFirstClean = std::remove_cv_t<TFirst>; + using TSecondClean = std::remove_cv_t<TSecond>; + return CombineHashes(THash<TFirstClean>()(pair.first), THash<TSecondClean>()(pair.second)); } }; } |