Fixed -Wmaybe-uninitialized

This commit is contained in:
Andrzej Krzemienski
2017-11-04 19:09:29 +01:00
parent 06dea2cb9b
commit 40f7c97292
5 changed files with 12 additions and 6 deletions

View File

@ -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