C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Possible deprecation of -> operator

From: Marcin Jaczewski <marcinjaczewski86_at_[hidden]>
Date: Fri, 31 Jan 2025 11:40:37 +0100
And how do you plan to support smart pointers?
Consider code:
```
std::unique_ptr<std::unique_ptr<int>> f;
f.release();
```
inner or outer pointer will be released?

Or you simply ignore it and break "compatibility" between smart and
buldlin pointers?

pt., 31 sty 2025 o 11:23 Filip via Std-Proposals
<std-proposals_at_[hidden]> napisał(a):
>
> Hi everyone,
>
> I’m wondering about the possibility of removal or deprecation of -> operator in favor of automatic dereference by ‘.’
>
> If I remember correctly in tcc, compiler has a single if to check if they are used correctly and could automatically use the correct operation.
>
> Are there any good reasons to keep that syntax?
> In my experience it’s just an annoying part of early c that is maintained.
>
> Cheers,
> Filip
>
> Cheers, Filip
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2025-01-31 10:40:47