diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-24 07:21:07 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-24 21:52:05 +0200 |
commit | 73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83 (patch) | |
tree | 31ecba073091bae2a424f3d0b6215591408edca3 /src/common/intrusive_red_black_tree.h | |
parent | ci: Update clang format version (diff) | |
download | yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.tar yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.tar.gz yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.tar.bz2 yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.tar.lz yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.tar.xz yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.tar.zst yuzu-73666fb2622a5f6a7ab9f92c9a46ce2e215c4e83.zip |
Diffstat (limited to 'src/common/intrusive_red_black_tree.h')
-rw-r--r-- | src/common/intrusive_red_black_tree.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/common/intrusive_red_black_tree.h b/src/common/intrusive_red_black_tree.h index 1f696fe80..3173cc449 100644 --- a/src/common/intrusive_red_black_tree.h +++ b/src/common/intrusive_red_black_tree.h @@ -235,20 +235,19 @@ public: template <typename T> concept HasLightCompareType = requires { - { std::is_same<typename T::LightCompareType, void>::value } - ->std::convertible_to<bool>; + { std::is_same<typename T::LightCompareType, void>::value } -> std::convertible_to<bool>; }; namespace impl { -template <typename T, typename Default> -consteval auto* GetLightCompareType() { - if constexpr (HasLightCompareType<T>) { - return static_cast<typename T::LightCompareType*>(nullptr); - } else { - return static_cast<Default*>(nullptr); + template <typename T, typename Default> + consteval auto* GetLightCompareType() { + if constexpr (HasLightCompareType<T>) { + return static_cast<typename T::LightCompareType*>(nullptr); + } else { + return static_cast<Default*>(nullptr); + } } -} } // namespace impl |