mirror of
https://github.com/boostorg/optional.git
synced 2026-04-29 10:13:20 +02:00
Fixed -Wmaybe-uninitialized
This commit is contained in:
@@ -26,7 +26,7 @@ namespace boost {
|
||||
template<class T>
|
||||
inline
|
||||
bool operator == ( optional<T> const& x, optional<T> const& y )
|
||||
{ return equal_pointees(x,y); }
|
||||
{ return bool(x) && bool(y) ? *x == *y : bool(x) == bool(y); }
|
||||
|
||||
template<class T>
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user