How to overload this comparison operator in C++?
(statement)?(if true):(if false)
How to overload this comparison operator in C++?
(statement)?(if true):(if false)
You can't (§13.5/3):
The following operators cannot be overloaded:
.
.*
::
?:
nor can the preprocessing symbols#
and##
(Clause 16).