|
Boost Users : |
From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2008-08-21 10:27:35
Related to my previous question: fusion::map is a sequence and instances of it
could be directly compared with operator < , thus vectors of instances also
sorted if fusion::pair supported relational operators other than == and !=
(which it doesn't).
So, two questions:
1. What is the recommended way of defining operator< for particular pair
instances (e.g. for pair<net, int>) ?
2. An explanation of why doesn't fusion::pair define at least operator< would
be welcome.
Thanks.
(Yes, I know, I can pass an explicit predicate to std::sort.. )
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net