From 9c5d6bcc8cdfed64e8da78cc8d30293e07cf8a7a Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Mon, 4 Feb 2013 04:10:29 +0000 Subject: [PATCH] added pair < operator for case where key (first type) is the same. [SVN r82709] --- include/boost/fusion/support/pair.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/fusion/support/pair.hpp b/include/boost/fusion/support/pair.hpp index 11ad1ffe..642afdfa 100644 --- a/include/boost/fusion/support/pair.hpp +++ b/include/boost/fusion/support/pair.hpp @@ -105,6 +105,13 @@ namespace boost { namespace fusion { return l.second != r.second; } + + template + inline bool + operator<(pair const& l, pair const& r) + { + return l.second < r.second; + } }} #if defined (BOOST_MSVC)