On Tue, Jun 25, 2013 at 11:14 PM, Eric Niebler
On 13-06-25 01:53 AM, Giovanni Piero Deretta wrote:
On Mon, Jun 24, 2013 at 8:19 PM, Eric Niebler
wrote: [...] And while I'm thinking of it, I see lots of potential with try_call and C++14's generic lambdas. Wish I had a compiler that implements them. In
On 13-06-24 11:53 AM, Pierre Talbot wrote: the above, if h is not something that can be passed as a parameter, you'd want this:
try_call([](auto &&...args){return h(forward<decltype-dance>(args)...);})(f(), "hello world", g(), 42);
This begs to be wrapped up in a macro.
Yet another use case for n3617:
try_call([]h)(f(), "hello world", g(), 42);
Oooh, that's nice. Has this been discussed yet in committee?
See https://github.com/gpderetta/Experiments/blob/master/tests/quote_test.cc for a C++11 macro based proof-of-concept implementation.
As far as I know it hasn't been discussed at last meeting. Not sure whether for lack of time or lack of a sponsor. -- gpd