diff options
| author | melkov <[email protected]> | 2022-02-10 16:48:14 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:14 +0300 |
| commit | 2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/utility.h | |
| parent | 438546c8737d5c1fdeb31157dcf999717d930eec (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 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 304a1b4e33e..43b98eeafc7 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>; |
