2013/9/29 Vlad from Moscow <vlad....@mail.ru>:
Er that should obviously be :{ return NAME(std::forward<decltype(args)>(args)...); };
#define AS_LAMBDA(NAME) [](auto&& ... args)
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-discussio...@isocpp.org.
To post to this group, send email to std-dis...@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-discussion/.
On 30/09/13 19:55, Daniel Krügler wrote:
2013/9/30 Mathias Gaunard <mathias...@ens-lyon.org>:
On Sun, Sep 29, 2013 at 5:02 PM, Mathias Gaunard
<mathias...@ens-lyon.org <mailto:mathias.gaunard@ens-lyon.org>>
wrote:
#define AS_LAMBDA(NAME) []<class... T>(T&& args...) { returnShouldn't the syntax I wrote above work too? (minus the typo, it should be
NAME(static_cast<T&&>(args)...); }
Of course I'm not sure the existing polymorphic lambdas even allow
variadic templates like that.
T&&... args, not T&& args...)
No, the grammar of lambda closures doesn't support it. The member
templates of generic lambda closures can only be expressed via the
special syntax using auto in the parameter declaration clause.
It was in revision 1 of the proposal, it must have been removed then.
The patches for GCC also seem to implement the full syntax.
--
--- You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-discussion+unsubscribe@isocpp.org.