Boost logo

Boost :

Subject: Re: [boost] [Containers] Review
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-08-12 05:58:02


El 11/08/2011 13:16, Stewart, Robert escribió:
> Here's another approach:
>
> flat_container c; { flat_container::insert_batch b(c);
> b.insert(data1); b.insert(data2); b.merge(); }

That's the idea I had, some "commit", otherwise the destructor can't
know if it's being called because an exception has occurred. The
destructor can rollback actions if merge or commit has not been requested.

Best,

Ion


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