Workaround HPX inflicted boost::result_of issue