0

How to overload this comparison operator in C++?

(statement)?(if true):(if false)
leemes
  • 44,967
  • 21
  • 135
  • 183
user2217303
  • 356
  • 4
  • 16

1 Answers1

6

You can't (§13.5/3):

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

SingerOfTheFall
  • 29,228
  • 8
  • 68
  • 105