|
Boost : |
From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2008-01-06 09:40:42
dan marsden wrote:
> Steven Watanabe wrote:
>> If multiple cases are not grouped together, I don't
>> see how it's an advantage to use my library vs. using a
>> plain old hand-written switch. Would you mind elaborating?
>
> I think you're probably right, my original suggestion that multiple
> overloads of operator() would be likely is probably wrong. I can only
> suggest handling special cases such as divide by zero for example,
> but I think my original suggestion may be a red herring.
I can imagine that grouping overloads using 'enable_if' and a condition
could be useful, occasionally.
Regards,
Tobias
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk