0

How to overload this comparison operator in C++?

(statement)?(if true):(if false)
leemes
  • 43,629
  • 21
  • 127
  • 181
user2217303
  • 356
  • 4
  • 15

1 Answers1

6

You can't (§13.5/3):

The following operators cannot be overloaded: . .* :: ?: nor can the preprocessing symbols # and ## (Clause 16).

SingerOfTheFall
  • 28,216
  • 8
  • 63
  • 102