25 Jul
2007
25 Jul
'07
7:39 a.m.
On Wed, July 25, 2007 02:54, Vsevolod Vlaskin wrote:
Hi,
A few comments:
1) The macro may be of a very limited usage, as comma inside will break it. Preprocessor will choke on this:
THROW_INVALID_ARGUMENT_IF_FAIL( my_func( a, b, c ) );
Comma is not a real threat. This macro will compile fine: THROW_INVALID_ARGUMENT_IF_FAIL( (my_func( a, b, c )) ); [...] But the article written by Andrei Alexandrescu (see some posts before) seams to be really great and much better as the current suggestion. With Kind Regards, Ovanes Markarian