25 Feb
2003
25 Feb
'03
8:49 a.m.
David Abrahams wrote:
Markus Werle
writes:
Q3: (OT) Is there a mpl-equivalent to run-time case?
:-)
Aleksey and I have been discussing some shorthands for
if (c1) then t1 else if (c2) then t2 else if (c3) then t3 ... else if (c4) then t4
but that's not quite the same as a case statement.
A std::map equivalent would help here a lot.
It should be possible to search within a typelist of
std::pair