| 6362 | |
| 6363 | template <typename Fun> |
| 6364 | Detail::CompleteType_t<Detail::ResultOf_t<Fun()>> user_code(Fun&& fun) { |
| 6365 | CATCH_TRY{ |
| 6366 | return Detail::complete_invoke(std::forward<Fun>(fun)); |
| 6367 | } CATCH_CATCH_ALL{ |
| 6368 | getResultCapture().benchmarkFailed(translateActiveException()); |
| 6369 | CATCH_RUNTIME_ERROR(Detail::benchmarkErrorMsg); |
| 6370 | } |