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: Patch: stl_vector.h


On Sat, 2004-10-16 at 23:42, Paolo Carlini wrote:
> Dhruv Matani wrote:
> 
> >Anyhow, what still surprises me is the fact that if you change the
> >ALLOCATE_TEMPLATE macro to std::allocator, it works fine???
> >  
> >
> This is clear: you are simply using the other __uninitialized_fill_n_a
> overload (the only one existing in 3.3 and 3.4, by the way: 'til 4.0 the
> allocator argument was simply dropped)

Ah! I did not notice that there was an overload which had allocator<_Tp>
etc...

So, it seems that the inliner is not inlining the calls to construct()
when called with an allocator from within __ufill_n_a()? Hence the
overloads, or is there some other reason?


> 
> Paolo.
-- 
        -Dhruv Matani.
http://www.geocities.com/dhruvbird/

The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs


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