Subject: [Boost-bugs] [Boost C++ Libraries] #3720: templated comparison operators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-05 03:30:44
#3720: templated comparison operators
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: fcacciola
Type: Feature Requests | Status: new
Milestone: Boost 1.42.0 | Component: optional
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
template<class T> inline bool operator == ( optional<T> const& x,
optional<T> const& y ) ;
and all other comparison operators should be replaced by
template<class T,class Y> bool operator==(optional<T> const &,optional<Y>
const &);
so optionals of different but comparable types can be compared.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3720> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC