Boost logo

Boost :

Subject: Re: [boost] [transact] code in sandbox
From: Vicente Botet Escriba (vicente.botet_at_[hidden])
Date: 2010-02-12 09:49:28

strasser wrote:
> Zitat von Vicente Botet Escriba <vicente.botet_at_[hidden]>:
>> With my macros or with yours, the user needs to be aware that the
>> transaction block is included on a internal loop.
> not necessarily. when you "return" from a transaction scope, commit()
> isn't reached, so the transaction is not committed.
> in this case:
> do{
> return 1;
> }while(a++ == 5);
> you don't expect that the side effects of the while-clause still takes
> effect. so I don't see a problem in the behaviour that "return" omits
> the commit either.
> you could of course offer a macro like COMMIT_AND_RETURN.

How the user can return successfully with your macros?


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at