P0917

Making operator?: overloadable

R4

This paper proposes user-defined overloads of `operator?:`. In addition to normal function calls, `operator?:` can also be defaulted, in which case it simply defines a common type to use for the built-in conditional operator. To avoid a breaking change, user-defined overloads of `operator?:` are only considered when no built-in candidate is viable.

Authors
Matthias Kretz
Mailing
2026-10
Doc date
2026-10-23
Audience
EWG