Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53870 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2009-06-13 12:22:21


Author: jewillco
Date: 2009-06-13 12:22:20 EDT (Sat, 13 Jun 2009)
New Revision: 53870
URL: http://svn.boost.org/trac/boost/changeset/53870

Log:
Changed sort_pair to try to appease VC++; refs #3134
Text files modified:
   trunk/boost/graph/rmat_graph_generator.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/graph/rmat_graph_generator.hpp
==============================================================================
--- trunk/boost/graph/rmat_graph_generator.hpp (original)
+++ trunk/boost/graph/rmat_graph_generator.hpp 2009-06-13 12:22:20 EDT (Sat, 13 Jun 2009)
@@ -228,10 +228,13 @@
   struct sort_pair {
     bool operator() (const std::pair<T,T>& x, const std::pair<T,T>& y)
     {
+ return y < x;
+#if 0 // Testing VC++ 9.0 behavior
       if (x.first == y.first)
         return x.second > y.second;
       else
         return x.first > y.first;
+#endif
     }
   };
 


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