Boost logo

Boost :

From: Alexander Grund (alexander.grund_at_[hidden])
Date: 2021-01-07 15:08:17

> 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?

Boost list run by bdawes at, gregod at, cpdaniel at, john at