I wanted a Cases function that takes 6 parameters, so I added a few more.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I ended up in a situation where I needed 11 arguments (if you want a similar example, just grep for StringSwitch<bool> in MC).
I think the proposed solution was OK'ish up to 10 arguments, but adding more might be not ideal. So, now that we live in a post C++98 world, what do you think about switching this class to use variadic templating? I'm going to implement such a solution if nobody has objections. (cc: @dblaikie for thoughts)
Comment Actions
IIRC, it is tricky to use a template because all but the last parameter are of the same in Cases. If it takes Value as the first parameter, it would have been easier to use a template. But I'm not a C++ expert, so there may be a straightforward way of doing it.