
strasser wrote:
Zitat von Vicente Botet Escriba <vicente.botet@wanadoo.fr>:
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? Vicente -- View this message in context: http://old.nabble.com/-transact--code-in-sandbox-tp27515535p27564662.html Sent from the Boost - Dev mailing list archive at Nabble.com.