From: Steven Watanabe (steven_at_[hidden])
Date: 2007-02-02 21:37:02
Dean Michael Berris <mikhailberis <at> gmail.com> writes:
> Hi Steven!
> On 2/3/07, Steven Watanabe <steven <at> providere-consulting.com> wrote:
> > AMDG
> > Is there any interest in a function template that generates a switch
> > statement?
> 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.
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk