X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ffutures%2FUnit.h;h=44c3661b0063eb22e4e574498b926360519f2c7d;hp=9d67bf0fc68114e8cf4573bf8b6abd34758d48ed;hb=bcf360a905b6a443d23ab0433ec64d79cc191cb6;hpb=7f22ad99b5c4583d8f579911b8907c7758a4151e diff --git a/folly/futures/Unit.h b/folly/futures/Unit.h index 9d67bf0f..44c3661b 100644 --- a/folly/futures/Unit.h +++ b/folly/futures/Unit.h @@ -29,6 +29,8 @@ struct Unit { template 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.