diff options
Diffstat (limited to 'boost/optional/detail/optional_relops.hpp')
-rw-r--r-- | boost/optional/detail/optional_relops.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/optional/detail/optional_relops.hpp b/boost/optional/detail/optional_relops.hpp index 3f961179d7..2c17f2b727 100644 --- a/boost/optional/detail/optional_relops.hpp +++ b/boost/optional/detail/optional_relops.hpp @@ -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 |