Boost logo

Boost :

Subject: Re: [boost] Interest in an 'either' library?
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2013-06-25 04:53:35

On Mon, Jun 24, 2013 at 8:19 PM, Eric Niebler <eniebler_at_[hidden]> wrote:
> On 13-06-24 11:53 AM, Pierre Talbot 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
> 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);

for a C++11 macro based proof-of-concept implementation.

-- gpd

Boost list run by bdawes at, gregod at, cpdaniel at, john at