This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Empty vector::push_back()?
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, libstdc++ at gcc dot gnu dot org
- Date: 26 Feb 2002 05:54:03 +0100
- Subject: Re: Empty vector::push_back()?
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1020225174605.26171A-100000@taarna.cygnus.com>
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