C++ Logo

std-proposals

Advanced search

Re: [std-proposals] ^^operator [was: Re: New draft proposal: Add "%s" (two-digit truncated-integer seconds) as a std::format conversion specifier for std::chrono time types.]

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Thu, 4 May 2023 08:33:53 -0500
On Thu, May 4, 2023, 08:15 Timur Doumler <cpp_at_[hidden]> wrote:

>
>
> On 4 May 2023, at 14:27, Edward Catmur <ecatmur_at_[hidden]> wrote:
> Deprecate ** in one cycle, make it an operator token in the next. Like we
> did for [,].
>
>
> Except that this would break A LOT of code. I used to work on a scientific
> code base where multiple dereferences like `***` were all over the place.
>

You could still make those work by relaxing maximal munch, like >> in
templates. The only thing that would change meaning would be a**b (and
a***b etc) , which is poor style anyway.

Cheers,
> Timur
>
>

Received on 2023-05-04 13:34:11