Hmmm... that's an entirely different beast...
and you're right, it doesn't work (but it should!). With a piecewise
function defined using the template I also got the error. The problem
is that list<number returns a list of "true" and "false" statements
and that's neither true, nor false.
I've compiled a few examples (see attached file), using the piecewise
template as well as when statements, they all return unexpected
results. I think a close look at this issue is important.
Nelson