Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-08-06 21:28:37


----- Original Message -----
From: "Brian Simpson" <wheber_at_[hidden]>
> "Douglas Gregor" <gregod_at_[hidden]> wrote in message
> news:<000401c35bd2$a1134400$753bc4ac_at_wallace>...
> >Of course, you can do slightly better than this by switching in chunks of
> >size max_specialization_count, so there there are only a few if
statements
> >(to determine which chunk we're in). Granted, the effort would be large
and
> >the return potentially small, so it may not be of interest. (My
assumption
> >is that most people do not use variants with huge numbers of
possibilities,
> >so that few variants require the if statements).
[snip]
> Just so you don't have to wade through the code, here is the general case
> "invoke" function:
> <code>
[snip]
> </code>
> This is what you were suggesting, right?

Precisely.

    Doug


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