| 6518 | |
| 6519 | template <typename Fun> |
| 6520 | Detail::CompleteType_t<Detail::ResultOf_t<Fun()>> user_code(Fun&& fun) { |
| 6521 | CATCH_TRY{ |
| 6522 | return Detail::complete_invoke(std::forward<Fun>(fun)); |
| 6523 | } CATCH_CATCH_ALL{ |
| 6524 | getResultCapture().benchmarkFailed(translateActiveException()); |
| 6525 | CATCH_RUNTIME_ERROR(Detail::benchmarkErrorMsg); |
| 6526 | } |