Allow Optional<T> {=,!}= T comparisons in folly::Optional
authorMax Wang <mwang@fb.com>
Wed, 15 Oct 2014 20:00:18 +0000 (13:00 -0700)
committerdcsommer <dcsommer@fb.com>
Fri, 17 Oct 2014 18:44:52 +0000 (11:44 -0700)
commit3550ca21cd965645334d5b42876fa6fa2dfcb8f1
treec70e05785da3051f73f21fd1dd7a6854c24b2899
parent71431a937ae36f689b87d17e2f466d7e703b4174
Allow Optional<T> {=,!}= T comparisons in folly::Optional

Summary:
I can see how {<,>}{,=} comparisons might be ambiguous, but equality
should never be, so let's allow it.

Test Plan: tests

Reviewed By: tjackson@fb.com

Subscribers: trunkagent, njormrod

FB internal diff: D1618088
folly/Optional.h