From f2ab814ce1488314da8787fab8852d7f66c8f837 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Sep 2019 21:02:28 -0400 Subject: [PATCH] System: Implement False() in terms of True() This is just a negation, so we can do this to place the logic in one spot. --- include/boo/System.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boo/System.hpp b/include/boo/System.hpp index 15cfe4f..7e03e10 100644 --- a/include/boo/System.hpp +++ b/include/boo/System.hpp @@ -56,8 +56,7 @@ static inline ComPtr* ReferenceComPtr(ComPtr& ptr) { return static_cast(key) != 0; \ } \ constexpr bool False(type key) noexcept { \ - using T = std::underlying_type_t; \ - return static_cast(key) == 0; \ + return !True(key); \ } #endif