Boost logo

Boost :

Subject: Re: [boost] [devector] optimum growing/insertion policy
From: Joaquin M López Muñoz (joaquinlopezmunoz_at_[hidden])
Date: 2017-10-15 16:05:55


El 15/10/2017 a las 17:59, Joaquin M López Muñoz escribió:
> [...]
>
>     float balance=(float)std::max(original.back-remaining.back,0)/
> (original.back+original.front-remaining.back-remaining.front); //
> denominator can't be 0

This should be

 Â Â Â  float balance=(float)std::max(original.back-remaining.back,0)/
(std::max(original.back-remaining.back,0)+std::max(original.front-remaining.front,0);

Joaquín M López Muñoz


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk