----- Original Message ----- From: "Brian Simpson" <[EMAIL PROTECTED]> > "Douglas Gregor" <[EMAIL PROTECTED]> wrote in message > news:<[EMAIL PROTECTED]>... > >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 _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost