
11 Feb
2010
11 Feb
'10
5:01 a.m.
Zitat von "vicente.botet" <vicente.botet@wanadoo.fr>:
*** new syntax for transaction scopes: syntax changed from: atomic{ ... }retry;
to
do atomic{
}commit();
I prefer that syntax because it resembles the do{}while(...) syntax. downside is that it conflicts with transaction::commit() if the user chooses to define BOOST_TRANSACT_COMMIT to "commit" (as is done above).
Maybe we can preserv both and see how the user react.
the user can easily create the old syntax using the existing macros: #define atomic do BOOST_TRANSACT_ATOMIC #define retry BOOST_TRANSACT_COMMIT()