This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] stl_vector.h
On Tue, 2004-10-12 at 21:20, Jonathan Wakely wrote:
> On Tue, Oct 12, 2004 at 08:43:44PM +0530, Dhruv Matani wrote:
>
> > Hello,
> > Here is the patch for the bug that I had mentioned earlier on.
>
>
> Do all those versions need to change?
Nope.
>
> std::uninitialised_fill_n() seems to be safe with n=0, and the same for
> our __uninitialised_fill_n and friends.
>
> Only the calls allocate(n) seems to be in trouble, I think.
Yes, I just added them for efficiency. If we know that nothing is going
to happen, why call the function in the first place?
>
> jon
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs