$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [variant][mpl] silly mistake in make_variant_over usage?
From: Nat Goodspeed (nat_at_[hidden])
Date: 2015-08-28 22:25:45
On Fri, Aug 28, 2015 at 9:47 PM, AgustÃn K-ballo Bergé
<kaballo86_at_[hidden]> wrote:
> On 8/28/2015 10:35 PM, Nat Goodspeed wrote:
>> (Is there a simpler way to obtain a variant of the result types of
>> passed functions? I was hoping I could just write: boost::variant<
>> std::result_of<Fns>::type... >.)
> So probably this would to:
>
> typedef boost::variant<
> typename std::result_of<Fns()>::type...> >::type return_t;
Thank you very much! Indeed, this works:
typedef boost::variant< typename std::result_of<Fns()>::type... > return_t;
So my silly mistake was omitting the parentheses. :-)