From: Joel de Guzman (joel_at_[hidden])
Date: 2006-05-10 20:12:49
Tobias Schwinger wrote:
> Tobias Schwinger wrote:
>> I'm still playing with it and hope I can add some details here, soon.
> I wanted to use Fusion to write something (well, at least half-way)
> real for review, so I chose to solve this problem:
> Call one of a heterogenous set of functors (their call operators might
> be templates) based on a runtime index with a complexity of O(log N)
> (basically what an n-ary tree structure of nested switch/case blocks
> The solution
> o handles unary functors only and doesn't bother with the result (simplicity),
> o contains numerous workarounds and is far away from being perfect,
> o requires an MPL-patch [ http://tinyurl.com/ljfdm] to compile, but
> o nevertheless documents my fight with the library, hopefully including
>lots of mistakes a new user is tempted to make, so it might work good to
inspire upcomnig examples.
> http://tinyurl.com/l5bxl (source file in the vault)
Very cool! That might be a good example for a tutorial if you are
willing to document and share it. In fact, I need something like
that in Spirit-2 (but I need the result and more args).
> Fusion rocks!
Thanks! Kind words like that make all those long coding nights
all worth while! :)
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk