The minimal example of the problem I\'m having is reproduced below:
#include using namespace std; class foo { public: int value, x; foo(const in
From the definition of the operator< (i.e. considering only the value return value < rhs.value and ignoring the x), I am wondering whether you want a map instead of a set. In map, the second value is mutable.
operator<
return value < rhs.value
x
map
set
second