21 Jun
2007
21 Jun
'07
8:58 a.m.
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@onlinehome.de ICQ-ID: 39965036