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

2003-08-09 Thread Aleksey Gurtovoy
Brian Simpson wrote: The implementation reasoning runs like this: It seems that the problem with building a switch statement to implement type selection is that a switch statement can't be built incrementally--it is a syntactic construct. (The currently accepted solution builds an

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

2003-08-06 Thread Douglas Gregor
- Original Message - From: Brian Simpson [EMAIL PROTECTED] The general case devolves into an else-if-then: Let us assume that we have specializations up to a certain number, 'max_specialization_count'. Then we know that we can get switch-based runtime type selection (rtts) on any