
10 Apr
2013
10 Apr
'13
5:43 p.m.
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