[PATCH] remove struct == POD coding convention [PR61339]

Martin Sebor msebor@gmail.com
Wed Mar 25 21:46:24 GMT 2020


Last July we agreed to remove the convention that declarations of
POD classes use the class-key struct (and others class).  Attached
is a patch to update the GCC Coding Conventions and the rationale
to reflect the decision.  I replaced it with a mild suggestion to
use struct for C structs and class for all others, that I Jason
and Jonathan preferred but tried to make it clear it wasn't a hard
and fast rule.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-codingconvention-struct-pod.diff
Type: text/x-patch
Size: 3534 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200325/a2ecd7e5/attachment.bin>


More information about the Gcc-patches mailing list