util/AllocatedString: work around bogus gcc6 warning

This commit is contained in:
Max Kellermann 2016-05-11 17:10:15 +02:00
parent f26159a0e3
commit a67b7266ed
1 changed files with 4 additions and 4 deletions

View File

@ -103,12 +103,12 @@ public:
return *this;
}
constexpr bool operator==(std::nullptr_t other) const {
return value == other;
constexpr bool operator==(std::nullptr_t) const {
return value == nullptr;
}
constexpr bool operator!=(std::nullptr_t other) const {
return value != other;
constexpr bool operator!=(std::nullptr_t) const {
return value != nullptr;
}
constexpr bool IsNull() const {