| 57 | } // anonymous namespace |
| 58 | |
| 59 | Expected<void> protectedRun( const std::function<void ()>& task ) |
| 60 | { |
| 61 | std::string s; |
| 62 | if ( protectedRunEx_( task, s ) ) |
| 63 | return {}; |
| 64 | return unexpected( std::move( s ) ); |
| 65 | } |
| 66 | |
| 67 | std::function<void ()> protectedFunc( std::function<void ()> unprotectedFunc ) |
| 68 | { |
no test coverage detected