|
Boost : |
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2020-09-08 21:45:26
On 2020-09-09 00:36, Peter Dimov via Boost wrote:
> Andrey Semashev wrote:
>
>> I noticed a few missing operators: unary +, ++, --, <<, >>, <=>, =,
>> <op>=. Also, unary &, but I'm not sure it's a good idea to add one. I
>> realize that there are no functional objects for those, but the
>> library could define them. Do you plan to add them?
>
> I think that << and >> almost certainly belong there, and I was kind of
> surprised that <functional> doesn't define function objects for them.
> Next in line would be unary plus.
>
> I'm less sure about the various op-assignments and ++/--. At the moment
> I'd be inclined to skip them. And of course op= is impossible to add
> because it must be a member.
>
> As for <=>, I admit I haven't considered it at all. I haven't yet
> updated my thinking to C++20.
I also forgot operator[].
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk