| |||
| Home > Language Extensions > ? operator | |||
A ? operator whose second and third operands
are string literals or wide string literals can be implicitly converted
to char * or wchar_t *. In
C++ string literals are const. There is an implicit conversion
that enables conversion of a string literal to char * or wchar_t
*, dropping the const. That conversion,
however, applies only to simple string literals. Permitting it for
the result of a ? operation is an extension.