
6 Jan
2008
6 Jan
'08
2:40 p.m.
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