
12 Aug
2011
12 Aug
'11
9:58 a.m.
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