| 3555 | } |
| 3556 | |
| 3557 | inline void register_exception_translator(ExceptionTranslator &&translator) { |
| 3558 | detail::with_exception_translators( |
| 3559 | [&](std::forward_list<ExceptionTranslator> &exception_translators, |
| 3560 | std::forward_list<ExceptionTranslator> &local_exception_translators) { |
| 3561 | (void) local_exception_translators; |
| 3562 | exception_translators.push_front(std::forward<ExceptionTranslator>(translator)); |
| 3563 | }); |
| 3564 | } |
| 3565 | |
| 3566 | /** |
| 3567 | * Add a new module-local exception translator. Locally registered functions |