OneOffDriveByPoster @ Sun Oct 10, 2010 10:02 pm wrote:
A class is a better idea because you won't have to move the other fields to match the one you are sorting on.
What do you mean by this?
IIRC, the only difference between a class and a struct in C++ is that Struct members are public by default, while Class members are private by default.
I was responding to the OP's question (I should have quoted from that I guess). I did not say that "class was better then struct". I chose to use "class" instead of "struct" to represent the same option. Sorry for the confusion.