Boost logo

Boost :

From: Shayne.Fletcher_at_[hidden]
Date: 2006-06-07 21:16:09


>>Chris Weed wrote:
>>
>> Hi,
>> I'd also like to see apply_visitor with more arguments.
>> Is there a reason it is limited to 2?
>> Chris

>Eric Friedman wrote:
>
>Chris,
>
>I believe it was due to the complexity of implementing it :)
>
>Seriously though, it would be a nice feature to have, but it was not
>immediately obvious at the time how to easily implement "ternary"
>visitation. Moreover, there wasn't the same compelling set of use cases
>as there is with binary visitation. Let me know if there is, though.

I had a use case: ternary operators for a scripting language. I
implemented support for ternary and quarternary visitations. Files
attached for your convenience.

--
Shayne Fletcher
www.shinseibank.com





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