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