Boost logo

Boost :

From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2003-12-13 06:35:28


David Abrahams wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> writes:
>
>
>>I'm toying with the idea of allowing $1, $2, ... as alternatives to _1, _2,
>>.... on platforms which support the dollar sign in identifiers. I assume the
>>universal response to this would be that it is unworkable, dangerous, ugly
>>and possibly a felony.
>>
>>Does anyone have a better idea?
>
>
> Bite the bullet and use qualification.

Or just reuse bind's placeholders. Unless you need to add members
to the placeholders of course..

> That's what I did with MPL to stay out of the way of bind's
> placeholders, which were in the unnamed namespace and clashed
> with everything. The code still looks good enough to my eye.

..

   #define _1 boost::arg<1>()

;)

-- 
Daniel Wallin

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