C++ Logo


Advanced search

Subject: Re: [std-proposals] Proposal - Allow '.' operator to work on pointers (again sortof)
From: Matthew Woehlke (mwoehlke.floss_at_[hidden])
Date: 2020-03-05 11:06:27

On 05/03/2020 06.29, J Decker via Std-Proposals wrote:
> Smart pointers continue to work as they do, because they are an object that
> contains a pointer to an object, and are not 'pointers'. they are of a
> class type 'smart pointer', they are not pointers to a class of type 'smart
> pointer'.

So... now when I go to refactor my code, replacing a raw pointer with a
smart pointer, my code now breaks, or worse, silently changes behavior?

No, thanks.


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

Standard Proposals Archives on Google Groups