7 Jan
2021
7 Jan
'21
3:08 p.m.
Yes, literal operators somehow seem to have the opposite rule of other reserved names. Here names with underscores are reserved for user programs, and the non-underscore names are used by the standard library. kinda, yes. But you still can't use the reserved names, i.e. only _+lowercase is fine. But see below for uppercase
We even have a complex<float> operator""if(), even though if is a reserved keyword everywhere else. Odd, isn't it? :-) I think the "trick" here is that the identifier is `""if` not `if` (maybe even `operator""if`). Same for `""_W` not `_W`. Who said C++ is easy?