
"Jonathan Turkanis" <technews@kangaroologic.com> writes:
David Abrahams wrote:
"Jonathan Turkanis" <technews@kangaroologic.com> writes:
Daniel Wallin wrote:
Jonathan Turkanis wrote:
Do you have any suggestions for improving the macro syntax? For instance, do you like David Abrahams's suggested syntax better:
DECLARE_INTERFACE( Interface, ((int)(print)(ostream&)(int)) );
DECLARE_INTERFACE(Interface, (int, print, 2(ostream&, int)) );
If I could just get rid of that damned arity everything would be great!
DECLARE_INTERFACE(Interface, (int, print, (ostream&)(int)) );
?
This might be the best one yet. The same basic idea as your earlier suggestion, but without two of the annoying sets of parentheses. If you can help me figure out where to stick 'const' I'll be ready to roll. :-)
You mean member function constness? Sorry, I don't know. Maybe Paul M. has some ideas -- Dave Abrahams Boost Consulting www.boost-consulting.com