Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-02-03 10:44:20


David Abrahams wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> 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. :-)

Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk