Boost logo

Boost :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-04-13 14:46:12


Mathias Gaunard wrote:
> I would be quite interested in an utility that could generate a single
> functor with multiple overloads from multiple functors.
>
> It could be quite useful for example to visit a variant and all kinds of
> pattern matching.
>
> I tried to implement it, using this [1] as a basis.
> But then I wanted to add Lambda and ResultOf support, and thus I
> realized the reflection mechanism could really help to figure out what
> argument_type should be.
>
> Any ideas about how to implement that and make it work with ResultOf and
> Lambda?

Boost.Egg experimentally contains egg::overload.
If interested, see:
   http://tinyurl.com/68luzd
(It supports ResultOf and Lambda.)

Regards,

-- 
Shunsuke Sogame

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