
Well, gcc 4.9 has a name lookup bug (
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58820) and Visual Studio 2013
Nov CTP chokes on lambda multiple inheritance.
Also, I'm not sure what you are suggesting with the struct F example.
Simply bringing the base class's operator () in the current scope does not
provide "typeswitch" capability.
On 29 November 2013 14:33, Mathias Gaunard
On 29/11/2013 19:31, Sumant Tambe wrote:
The implementation of the library is a little over 250 lines. Check it out
here: http://coliru.stacked-crooked.com/a/72597a93b12916d4. clang is the only compiler I've been able to compile it with.
Doing the kind of thing you're doing should be easy to do with any C++ compiler. You're apparently over-complicating things.
That stuff can simply be done with
template
struct F : F1, F2 { using F1::operator(); using F2::operator(); }; This approach also has the advantage that it doesn't require monomorphic lambdas, it can build an overload of arbitrary function objects.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/ mailman/listinfo.cgi/boost