Re: Coding style for C++ constructs going forward

Liu Hao via Gcc <[email protected]>
Newsgroups gmane.comp.gcc.devel,gmane.comp.gdb.devel
Message-ID <[email protected]>
在 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.


-- 
Best regards,
LH_Mouse
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn9eDGptREvfrWRePQbMyeCIxW8QFAl804WEACgkQQbMyeCIx
W8SDQxAAu1HI92PvNRG7GvrAkHh1LVsPYAbbwJAtXGBZaFNcVR011EzgkqRsMW86
VCpkw+F4WviCf4BaWkWzf/gXMthIRSkJoCBeqN3P26PEV+iuz5EQ4iGz/pTHuIM5
oOchym/pd1u5sLFD2N8y7+YCTOhGJ/z0ANzq8qVOC/97vbyjgD22rnkZ0es0aeT8
DHnllftnsuEkt6wjrQ4idPWWhd+ZblTvbOLgXcdOH3qBflbuowhyEwhSUm902hTV
/xoT6kjQnferDvgNjDiiOVuMNkUDNCp6kmQYbv9aMPmCGTyticcZD4yIVafZfm0R
KKAR9O8rnW9tnBqYO4VFI8R9Ewl6QgR9aIHx8y9j/EYPzaMoz4vs/RXiGD+V8Rbu
1iZ7Lihiu3L14v5btj/Y+kROwVfb79yuyJJFZWrSeRMIH51jVwHPKAvQ87Wl2onC
au+9bG7a3OsRh7ae5VxhyDGZNS4gblhnnD2VUQSJkIVmIjbXB2BcAI+Dywu9o+i3
yXC2RiZ66oWhCK/oIIsJgJhBuR2v9jT/jQzLpa0RJMvwo6QQlTvjtswykuV8W9Qe
uZSIe+aRhHdX20gRSJA9y/OZllhaNWQQkievSinrEX1QMkQAqNsAFf6jij36nouz
p2aEV5hW1QEK+acsUTyWmkznY6J2CJ+5VibuwzhWuZJQW/XTr78=
=V672
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.