C++ Logo

std-proposals

Advanced search

Re: Proposal - Allow '.' operator to work on pointers (again sortof)

From: Matthew Woehlke <mwoehlke.floss_at_[hidden]>
Date: Thu, 5 Mar 2020 12:06:27 -0500
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.

-- 
Matthew

Received on 2020-03-05 11:09:14