Patch for the allocator.

Dhruv Matani dhruvbird@gmx.net
Fri Mar 26 16:09:00 GMT 2004


On Fri, 2004-03-26 at 21:04, Paolo Carlini wrote:
> Dhruv Matani wrote:
> 
> > From the above page I assume that split means the star/splat
> > character(*)?
> >
> > Sorry if I'm being thick, but sometimes, I just don't get certain
> > things!
> 
> Split means, roughly, "divide into two or more parts". Example:
> 
> Right:
> 
> ((a - b)
>  / (c + d))
> 
> Wrong:
> 
> ((a - b) /
>  (c + d))
> 
> In your code you have, f.i.:
> 
>   if (std::less_equal<pointer>()(_M_ptr_value, __bp.second &&
>       std::greater_equal<pointer>()(_M_ptr_value, __bp.first))
> 
> whereas you should prefer:
> 
>   if (std::less_equal<pointer>()(_M_ptr_value, __bp.second
>       && std::greater_equal<pointer>()(_M_ptr_value, __bp.first))
> 
> Agreed?

Ok! Thanks for the detailed explanation!

Sorry for having frustrated you, I guess I'm just like that when it
comes to certain things :-)

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

Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html



More information about the Libstdc++ mailing list