D
Donovan Parks
Hello,
I am interesting in performing a non-strictly weak sorting of a vector
of objects. Specifically, I wish to sort these objects by a double
field unless they are equal in which case I wish to sort them based on
another field. As such, the ordering may no be strictly weak. Is it
possible to do this using STL?
I am using Visual C++ Express 2008 and it complains of a non-strictly
weak ordering when I run my program in debug mode. However, it will
let me do as I please in release mode. As an alternative, is there a
way to inform my compiler that I am OK with a non-strictly weak
ordering?
Thanks.
I am interesting in performing a non-strictly weak sorting of a vector
of objects. Specifically, I wish to sort these objects by a double
field unless they are equal in which case I wish to sort them based on
another field. As such, the ordering may no be strictly weak. Is it
possible to do this using STL?
I am using Visual C++ Express 2008 and it complains of a non-strictly
weak ordering when I run my program in debug mode. However, it will
let me do as I please in release mode. As an alternative, is there a
way to inform my compiler that I am OK with a non-strictly weak
ordering?
Thanks.