|
Boost Users : |
Subject: Re: [Boost-users] [variant] Variant call forwarding?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-02-26 05:06:36
Mathias Gaunard wrote:
> If you want to do it for arbitrary signatures and provide perfect
> forwarding without rvalue references, it is going to be a bit more work.
Thanks, indeed. Although the amount of work is eased by using stuff like
function_types and preprocessor stuff.
> With polymorphic lambdas (an extension to C++0x lambdas), it is quite
> simpler:
>
> apply_visitor([&](auto& f) { return f(a, b, c); }, m_funcs);
Polymorphic lambdas ... I guess you're talking C++1x here :-)
Cheers,
Rutger
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net