Discussion Locked

Automate comparison operators

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Tell us what you think about our C++ tip on automating comparison operators.

1 reply

by kevlin

There are template techniques that offer a far cleaner approach to generating comparison operators, e.g.

class Name : public AllComparisons
{
...
};

I am not sure that I want MFC-style macros littering my code! Or rather, I am quite sure that I don't :->

Kevlin

This discussion is closed to new replies.