From 4c367fc12cffe97b8471e5b6f3e5b2acb77f0b36 Mon Sep 17 00:00:00 2001 From: "Evgeniy A. Dushistov" Date: Thu, 6 Jul 2017 11:41:58 +0300 Subject: [PATCH] fix build with clang 3.4.1 #19 --- src/utils.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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_; }