Empty vector::push_back()?

Benjamin Kosnik bkoz@redhat.com
Wed Feb 27 18:56:00 GMT 2002


> 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



More information about the Libstdc++ mailing list