[boost] Re: switch-based runtime type selection (for variant)

2003-08-20 Thread Brian Simpson
Eric, I've been too lazy to reply. From: "Eric Friedman" <[EMAIL PROTECTED]> Subject: Re: switch-based runtime type selection (for variant) Date: Thu, 14 Aug 2003 02:09:41 -0400 Brian Simpson wrote: > Eric, > It sounds like you've become convinced that the switc

[boost] Re: switch-based runtime type selection (for variant)

2003-08-14 Thread Brian Simpson
"Douglas Gregor" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... - Original Message - From: "Brian Simpson" <[EMAIL PROTECTED]> > The general case devolves into an else-if-then: > Let us assume that we

[boost] Re: switch-based runtime type selection (for variant)

2003-08-14 Thread Brian Simpson
Eric, "Eric Friedman" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... Brian Simpson wrote: > A fundamental problem encountered by boost::variant is that of > invoking an overloaded function for the correct type, where the type > is not known unt

[boost] switch-based runtime type selection (for variant)

2003-08-14 Thread Brian Simpson
A fundamental problem encountered by boost::variant is that of invoking an overloaded function for the correct type, where the type is not known until runtime. As near as I can tell, all proposed solutions to this problem have involved uncomfortable space or time tradeoffs. I have read several

[boost] Re: switch-based runtime type selection (for variant)

2003-08-14 Thread Brian Simpson
"Aleksey Gurtovoy" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... FWIW, I've used a similar technique in MPL to do recursion unrolling for the 'advance' algorithm: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/ boost/mpl/aux_/preprocessed/plain/advance_f

[boost] Re: switch-based runtime type selection (for variant)

2003-08-06 Thread Brian Simpson
"Aleksey Gurtovoy" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... FWIW, I've used a similar technique in MPL to do recursion unrolling for the 'advance' algorithm: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/ boost/mpl/aux_/preprocessed/plain/advance_f