|
Boost : |
Subject: Re: [boost] [result_of] Allow result_of to work with C++11 lambdas
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2013-04-10 13:43:41
Hi Mathias,
Mathias Gaunard wrote:
> I personally have my own implementation of result_of which does this. My
> implementation is also simpler, compiles faster, is optionally optimized
> for compilers with variadic templates (also supports compilers with
> decltype but no variadic templates), has preprocessing support, and has the
> added benefit that result_of<Sig>::type is only defined if Sig is callable.
>
Sounds pretty slick. Is this in NT2, or just in some other code you have?
Just so it's clear to others on the list, boost::result_of (at least in
trunk) also has result_of<Sig>::type that is only defined when Sig is
callable. I believe Eric Niebler added that a while back.
Thanks,
Nate
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk