instance Eq Unit
[folly.git] / folly / futures / Unit.h
index 9d67bf0fc68114e8cf4573bf8b6abd34758d48ed..44c3661b0063eb22e4e574498b926360519f2c7d 100644 (file)
@@ -29,6 +29,8 @@ struct Unit {
   template <class T> struct Lift : public std::false_type {
     using type = T;
   };
+  bool operator==(const Unit& other) const { return true; }
+  bool operator!=(const Unit& other) const { return false; }
 };
 
 // Lift void into Unit.