projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
instance Eq Unit
[folly.git]
/
folly
/
futures
/
Unit.h
diff --git
a/folly/futures/Unit.h
b/folly/futures/Unit.h
index 9d67bf0fc68114e8cf4573bf8b6abd34758d48ed..44c3661b0063eb22e4e574498b926360519f2c7d 100644
(file)
--- a/
folly/futures/Unit.h
+++ b/
folly/futures/Unit.h
@@
-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.