|
Boost Users : |
From: Sebastian Pfützner (s.pfuetzner_at_[hidden])
Date: 2007-06-21 04:58:14
Hello,
the following program crashes in the last line (deallocate) with VC8:
#include "boost/pool/pool_alloc.hpp"
int main()
{
boost::pool_allocator<int> a;
int* i = a.allocate(0);
a.deallocate(i, 0);
}
I didn't find any annotations about restrictions regarding the allowed
size, neither in the c++ standard nor in the boost docs. I thought,
calling allocate is the same as calling array new with 0 (gives back a
pointer != 0 which must be array deleted).
Is the boost pool allocator not fully standard compliant?
-- Sebastian Pfützner s.pfuetzner_at_[hidden] ICQ-ID: 39965036
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net