14 Dec
2006
14 Dec
'06
6:04 p.m.
"Ovanes Markarian"
I believe I found some problem, when I was writing the test cases ;) It is for sure responsible for the reported misbehavior with max_element.
Well, I don't know how to deal with this issue, may be you can advice smth. Map accepts sequence of type pair. Vector as well. My approach was to think, as long as mpl::pair static interface (first, second) is valid I can use another class as well.
Clearly from your experiments you can see that you can't actually do that. -- Dave Abrahams Boost Consulting www.boost-consulting.com