This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: killing vector::push_back(void)
On Thu, May 16, 2002 at 05:48:06PM -0500, Loren James Rittle wrote:
> > We've got some things guarded by _GLIBCPP_DEPRECATED:
>
> > - In stl_vector.h, there is the no-argument push_back(), which we dep'd
> > at the end of Feburary. It's marked for 3.1, and I vote that this be
> > removed from 3.2 sources.
>
> I'd vote to remove any macro-guarded "options" especially all that are
> ABI changes.
That's the only one actually guarded by a macro.
I just found another such extension: vector::insert(i), taking only an
iterator. It's along the same lines as the no-arg push_back, assuming
a default constructor. This looks like an SGI-ism, and we /didn't/
deprecate it.
push_back() should go, but for 3.2 we ought to deprecate insert(i), and
remove it in 3.3.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams