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