Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-02-03 09:47:12


"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))
>>> );
>>>
>>> ?
>>
>> Here's two other ideas (that I *think* are implementable):
>>
>> DECLARE_INTERFACE(Interface,
>> 2(int, print, (ostream&, int))
>> );
>>
>> DECLARE_INTERFACE(Interface,
>> (int, print, 2(ostream&, int))
>> );
>
> This is a bit like Rene's, with 'ARGn' replaced by plain 'n'.
>
> If I could just get rid of that damned arity everything would be great!

      DECLARE_INTERFACE(Interface,
        (int, print, (ostream&)(int))
      );

?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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