
13 Apr
2008
13 Apr
'08
6:46 p.m.
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