Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82709 - trunk/boost/fusion/support
From: joel_at_[hidden]
Date: 2013-02-06 20:25:04


Author: djowel
Date: 2013-02-03 23:10:29 EST (Sun, 03 Feb 2013)
New Revision: 82709
URL: http://svn.boost.org/trac/boost/changeset/82709

Log:
added pair < operator for case where key (first type) is the same.
Text files modified:
   trunk/boost/fusion/support/pair.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/boost/fusion/support/pair.hpp
==============================================================================
--- trunk/boost/fusion/support/pair.hpp (original)
+++ trunk/boost/fusion/support/pair.hpp 2013-02-03 23:10:29 EST (Sun, 03 Feb 2013)
@@ -105,6 +105,13 @@
     {
         return l.second != r.second;
     }
+
+ template <typename First, typename SecondL, typename SecondR>
+ inline bool
+ operator<(pair<First, SecondL> const& l, pair<First, SecondR> const& r)
+ {
+ return l.second < r.second;
+ }
 }}
 
 #if defined (BOOST_MSVC)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk