public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3916
@ 2001-08-28 17:36 Eric Blake
0 siblings, 0 replies; only message in thread
From: Eric Blake @ 2001-08-28 17:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/3916; it has been noted by GNATS.
From: Eric Blake <ebb9@email.byu.edu>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, ebb9@email.byu.edu,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: libstdc++/3916
Date: Tue, 28 Aug 2001 18:20:51 -0600
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3916&database=gcc
> http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/C++STYLE
>[...]
> This is how the web page should appear; I am not in a position to provide the actual
> patch against the file CVS that the web page is generated from.
>
> {
> space = _ISspace,
> print = _ISprint,
> - cntrl = _IScntrl,
> + cntrl = _IScntrl // no comma for last entry
> };
> -NOT-
> enum { space = _ISspace, print = _ISprint, cntrl = _IScntrl };
It would still be useful to add a comment on the style page drawing
attention to the fact that the final comma is not legal in enums. That
is a
common mistake to make (I've done it plenty of times), since there are
other situations, like array initialization, where the trailing comma is
legal.
--
Eric Blake
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-28 17:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-28 17:36 libstdc++/3916 Eric Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).