mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix OptionalProxy<T> equality comparison
This commit is contained in:
committed by
Vinnie Falco
parent
2f94e16359
commit
688452d971
@@ -188,7 +188,7 @@ private:
|
||||
OptionalProxy const& lhs,
|
||||
OptionalProxy const& rhs) noexcept
|
||||
{
|
||||
if (lhs.engaged() != lhs.engaged())
|
||||
if (lhs.engaged() != rhs.engaged())
|
||||
return false;
|
||||
return ! lhs.engaged() || *lhs == *rhs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user