Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Christian Schladetsch (christian.schladetsch_at_[hidden])
Date: 2009-06-16 17:30:51


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk