Say I have this:
class Example {
enum class E { elem1, elem2 };
E& operator++(E& e) {
// do things
}
};
Seems to make perfect sense and I even see it used in other questions, but the compiler tells me that the parameters can only be either empty or an int.
This makes sense within a normal class, but exactly what am I supposed to operate on when I don't have a this
value?