Boost logo

Boost :

From: Vesa Karvonen (vesa.karvonen_at_[hidden])
Date: 2001-08-28 07:57:50


From: "John Max Skaller" <skaller_at_[hidden]>
> Douglas Gregor wrote:
> > Back on topic... It is possible to rearrange the syntax of the
variant_switch
> > a little bit. We could use vswitch and vcase in a manner similar to C's
> > switch/case:
> >
> > vswitch(v) (
> > vcase<T1>(action1)
> > | vcase<T2>(action2)
> > | vcase<T3>(action3)
> > );
>
> I'm not sure what you're meaning here. Are you suggesting
> a change to the C++ language? I thought you were trying to
> use existing features.

The above syntax can be implemented in C++ without changing the language.


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