Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-02-03 13:55:20


"Jonathan Turkanis" <technews_at_[hidden]> writes:

> 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. :-)

You mean member function constness? Sorry, I don't know. Maybe Paul M.
has some ideas

-- 
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