|
Boost : |
Subject: Re: [boost] Discovering C++11 lambda argument and result types to construct boost::function
From: Marco Cecchetti (mrcekets_at_[hidden])
Date: 2012-02-13 17:31:40
On Mon, 13 Feb 2012 23:25:51 +0100, Nathan Ridge <zeratul976_at_[hidden]>
wrote:
>
>> A note: if you substitute
>> using signature = R (Arg...);
>> with:
>> typedef R (Arg...) signature;
>> you get a compile time error.
>
> I believe the correct typedef syntax is:
>
> typedef R signature(Arg...);
>
> (This syntax never made sense to me, but it's the only one there was
> prior to C++11).
>
Right! A stupid error!
Thanks for having pointed out that.
I prefer the new using syntax, too.
Regards,
-- Marco
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk