mirror of
https://github.com/boostorg/optional.git
synced 2025-07-25 01:57:14 +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