Empty vector::push_back()?
Gabriel Dos Reis
gdr@codesourcery.com
Mon Feb 25 20:59:00 GMT 2002
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
More information about the Libstdc++
mailing list