diff options
| author | melkov <[email protected]> | 2022-02-10 16:48:13 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:13 +0300 |
| commit | 438546c8737d5c1fdeb31157dcf999717d930eec (patch) | |
| tree | d29d229abd2f9f889b9b7eb148d635059dc26acf /util/generic/utility.h | |
| parent | 96647fad5355ff5ef45a00a6d85c097028584ab0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/utility.h')
| -rw-r--r-- | util/generic/utility.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/utility.h b/util/generic/utility.h index 43b98eeafc7..304a1b4e33e 100644 --- a/util/generic/utility.h +++ b/util/generic/utility.h @@ -101,14 +101,14 @@ template <class T> static inline void DoSwap(T& l, T& r) noexcept(noexcept(NSwapCheck::TSwapSelector<T>::Swap(l, r))) { NSwapCheck::TSwapSelector<T>::Swap(l, r); } - -template <bool b> -struct TNullTmpl { + +template <bool b> +struct TNullTmpl { template <class T> - operator T() const { - return (T)0; - } -}; + operator T() const { + return (T)0; + } +}; using TNull = TNullTmpl<0>; |
