forked from boostorg/optional
Fixed -Wmaybe-uninitialized
This commit is contained in:
1 parent
06dea2cb9b
commit
40f7c97292
5 files changed
+12
-6
No files matched your search
@@ -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