Subject: [Boost-bugs] [Boost C++ Libraries] #10845: Generic comparison operators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-04 10:57:19
#10845: Generic comparison operators
------------------------------+--------------------------
Reporter: apolukhin | Owner: apolukhin
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: variant
Version: Boost 1.57.0 | Severity: Optimization
Keywords: |
------------------------------+--------------------------
It could be useful to have comparison operators with types that are held
in variant. For example:
{{{
variant<int, string> v1(1), v2("2");
if (v1 < 1 || v2 > "hello") {
// ...
}
if (v1 < 1.0) { // compilation error
// ...
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10845> 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:17 UTC