Bug 1180921 - Give Optional<T> Maybe<T>-like operator== semantics. r=bz

This commit is contained in:
Bobby Holley 2015-07-07 15:44:07 -07:00
parent 78f6d80fa0
commit 5f00046776

View File

@ -119,6 +119,11 @@ public:
mImpl.emplace(aValue);
}
bool operator==(const Optional_base<T, InternalType>& aOther) const
{
return mImpl == aOther.mImpl;
}
template<typename T1, typename T2>
explicit Optional_base(const T1& aValue1, const T2& aValue2)
{