
On 2/3/07, Steven Watanabe <steven@providere-consulting.com> wrote:
AMDG
Dean Michael Berris <mikhailberis <at> gmail.com> writes:
I've been working on something pretty similar, but is dynamic and can use not only int's as the "indexes". More information at http://dispatcher.sourceforge.net/ .
I'm currently in the process of cleaning up the implementation using Boost.PP, but there's already stuff there that's usable for a "switch replacement" scenario.
HTH!
My purpose was to get all the perfomance of a built in switch in a way that is usable in generic contexts. Thus, I am using the preprocessor to generate a real switch statement. A dynamic dispatcher is nice but it isn't really the same thing.
Ah, yes. My bad. I'd love to be able to use something like this in my implementation too, so yes I'm interested as well. :-) -- Dean Michael C. Berris http://cplusplus-soup.blogspot.com/ mikhailberis AT gmail DOT com +63 928 7291459