C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Allow '.' to behave like '->' where it is currently an error.
From: Olaf van der Spek (ml_at_[hidden])
Date: 2020-02-27 06:00:16


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?


STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups