|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-12-04 12:19:12
int f(char*);
#define foo(expr) if (!(expr)) { f(#expr); }
int main()
{
foo( f( "echo x \">\" foo.bar" ) );
}
yeilds:
error C2146: syntax error : missing ')' before identifier 'foo'
So, it's not just Metrowerks ;-)
===================================================
David Abrahams, C++ library designer for hire
resume: http://users.rcn.com/abrahams/resume.html
C++ Booster (http://www.boost.org)
email: david.abrahams_at_[hidden]
===================================================
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk