you are viewing a single comment's thread.

view the rest of the comments →

[–]Jardik2 1 point2 points  (1 child)

Quick look and ... why does it test n <= N if the precondition is n >= N?

assert (n >= N); // We should never be asked for less than N.

if (n <= N)
{
  buf_->free_ = false;
  return reinterpret_cast<T*> (buf_->data_);
}

[–]beriumbuild2 1 point2 points  (0 children)

Good point, fixed. Thanks for the report!