On Thu, 13 Aug 2020 at 07:46, Liu Hao via Gcc <gcc@gcc.gnu.org> wrote:
>
> 在 2020/8/13 上午2:40, David Blaikie 写道:
> >
> > Then use of `auto*` would make it easier for you to spot use of plain
> > pointers in your projects & scrutinize them further?
> >
>
> My point is that `auto*` conveys no more information than `auto`. The absence 
> of `*` does not imply the object (pointer)
> being declared can never be null (apologies for this triple negation), so it 
> complexifies coding rules and probably should
> not be used at all.

I am not aware of any significant downsides to it. You are of course
welcome to ban raw pointers from your own code, but that's not going
to happen for GCC any time soon, so maybe different rules should
apply.

Reply via email to