[Boost-bugs] [Boost C++ Libraries] #8620: Boost.Variant has no inequality operator

Subject: [Boost-bugs] [Boost C++ Libraries] #8620: Boost.Variant has no inequality operator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-27 16:00:05


#8620: Boost.Variant has no inequality operator
---------------------------------+------------------------------------------
 Reporter: gast128@… | Owner: ebf
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.52.0 | Severity: Cosmetic
 Keywords: |
---------------------------------+------------------------------------------
 The Boost.Variant does not support inequality, e.g.

 typedef boost::variant<int> Variant;

 Variant var1;
 Variant var2;

 if (!(var1 == var2))
 {
 }

 It would ofc be nicer if

 if (var1 != var2)
 {
 }

 Boost.operators already solve this problem (by deriving from
 equality_comparable or even better totally_ordered); not sure if this
 would help. The downside is that Boost.Variant is already a compile time
 cpu hog; with Boost.Operators it may be even worse.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8620>
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:13 UTC