This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Empty vector::push_back()?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, libstdc++ at gcc dot gnu dot org
- Date: Wed, 27 Feb 2002 18:04:38 -0800 (PST)
- Subject: Re: Empty vector::push_back()?
> What I'd really like is to use Gaby's gcc/diagnostic.def approach,
> and permit the user to set the diagnostic level, e.g.,
>
> __attribute__((__talkback__(DK_NOTE,"this works better with green")))
>
> Or maybe just hardcode it to use DK_NOTE instead of producing a warning.
Hmm. This is certainly interesting. It would be nice to put this on
member functions like (fileno) that are non-standard but unmangled....
I'm sure there are other uses.
For this particular case, however, I think removing them from the default
user-space completely is more appropriate. (With the DEPRECATED guard, as
discussed.)
What say you?
-benjamin