
16 Jun
2009
16 Jun
'09
9:30 p.m.
Hi Thorsten, I'm wondering how this leads to any curruption.
It doesn't.
I'm assuming
1. that memory is never freed
Memory is freed when the storage goes out of scope.
2. that memory is only use locally (in local containers)
so even though some memory is mixed between the two lists, it shouldn't matter as allocator::deallocate() is a no-op.
What am I missing?
GCC throws an exception if you attempt to splice between lists that have a different allocator.
Thanks
-Thorsten
Regards, Christian