
4 Sep
2012
4 Sep
'12
3:27 a.m.
<eric@boostpro.com> wrote:
We might also point out that the idiom of specializing boost::result_of to get the right answer for nullary function objects is no longer required, and should be conditioned on BOOST_RESULT_OF_USE_DECLTYPE.
And another consequence of this change is that the following code breaks with decltype-based result_of for a non-nullary function object F template <typename F> struct FuncWrapper { typename boost::result_of<F()>::type operator()(); /* ... */ }; as described in [Part 2 of 3] of my reply to Daniel. Regards, Michel