This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]