fix build with clang 3.4.1 #19

This commit is contained in:
Evgeniy A. Dushistov
2017-07-06 11:41:58 +03:00
parent b2ced870ab
commit 4c367fc12c

View File

@@ -1,6 +1,7 @@
#pragma once
#include <glib.h>
#include <cstddef>
#include <cassert>
#include <string>
#include <list>
@@ -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_;
}