Fixed -Wmaybe-uninitialized

This commit is contained in:
Andrzej Krzemienski committed 2017-11-07 23:34:37 +01:00
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