diff --git a/src/utils.hpp b/src/utils.hpp index 0079fd7..b55add1 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include #include @@ -27,11 +28,11 @@ public: } } - friend inline bool operator==(const ResourceWrapper& lhs, nullptr_t) noexcept { + friend inline bool operator==(const ResourceWrapper& lhs, std::nullptr_t) noexcept { return !lhs.p_; } - friend inline bool operator!=(const ResourceWrapper& lhs, nullptr_t) noexcept { + friend inline bool operator!=(const ResourceWrapper& lhs, std::nullptr_t) noexcept { return !!lhs.p_; }