Added validation of invalid inner future in wrap.
rollback to not define BOOST_RESULT_OF_USE_DECLTYPE.