Commit 5487d40b authored by Max Kellermann's avatar Max Kellermann

system/FileDescriptor: add operator!=

parent 5e512763
......@@ -65,6 +65,10 @@ public:
return fd == other.fd;
}
constexpr bool operator!=(FileDescriptor other) const noexcept {
return !(*this == other);
}
constexpr bool IsDefined() const noexcept {
return fd >= 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment