Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 4d63f22

Browse files
committed
prevent ambiguous operator overload resolution for Result
1 parent 99fb277 commit 4d63f22

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/common/result.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ class Result {
142142
constexpr bool contains(E error) {
143143
return this->error == error;
144144
}
145+
146+
// prevent ambiguous operator overload resolution
147+
bool operator==(const Result& other) = delete;
145148
};
146149

147150
} // namespace zest

0 commit comments

Comments
 (0)