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()?


Benjamin Kosnik <bkoz@redhat.com> writes:

| > What is your take?
| 
| Some kind of comment seems mandatory. Nathan's suggestion seems fine.
| 
| We could use this:
| #ifdef _GLIBCPP_DEPRECATED
|  push_back
| #endif
| 
| That way people could still compile stuff via
| 
| g++ -D_GLIBCPP_DEPRECATED 
| 
| but it wouldn't get in the way for other people.

I agree on all points.

I guess, for future releases, it might be interesting to investigate
Phil's suggestion of "instructing the compiler about diagnostics".

-- Gaby


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