Re: segfault with std::allocator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Toon,

You're not calling delete, your calling int_alloc.deallocate(p, 0);

And the deallocate routine (in ISO 14882, table 32 in 20.1.5) specifically says "p must not be null".

--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux