Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2003-10-17 14:46:08


> >>
> >> switch_(condition)
> >> .case_<label1>[lambda_expression]
> >> .case_<label2>[lambda_expression]
> >>
> >> What do you think?
> >
> > Not possible. case_<label1>[lambda_expression] is a
> > syntax error.

of course, silly me ;)
did not think about that

>
> switch_(condition)
> [
> case_<label1>()[expr1],
> case_<label2>()[expr2],
> case_<label3>()[expr3],
> default_(expr4)
> ]
>
Yep, this is the one I like.

Best,
John


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk