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



> 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.

I have several in mind.  :-)


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

Either way suits me fine; the user will have to either add an
option (-D_GLIBCPP_DEPRECATED) to get the function, or add an option
(-Wno-weird-phil-hooks) to /not/ be warned about it.  Either way the user
must take action, which is good.  And since only one of these possibilities
actually exists right now, let's use that one.  :-)

I'll add DEPRECATED and supporting documentation this week.


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


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