C++ Logo

std-proposals

Advanced search

Re: Allow '.' to behave like '->' where it is currently an error.

From: Olaf van der Spek <ml_at_[hidden]>
Date: Thu, 27 Feb 2020 13:00:16 +0100
On Fri, Feb 21, 2020 at 9:12 AM Михаил Найденов via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> For C++ the value is indeed possibly negative, as this will literally promote using raw pointers because their special properties.
>
> we try to promote
>
> something(const object& o);
> instead of
> something(const object* o);

Wouldn't a better solution be for C to adopt references?

Received on 2020-02-27 06:03:09