Guest User

Untitled

a guest
Dec 30th, 2017
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. template <typename F>
  2. void run_treated(F&& func) noexcept {
  3.   try {
  4.     //std::forward<F>(func)();
  5.     func(); // why not call directly, since there are no arguments?
  6.   } catch // ... all the catches go here
  7. }
Advertisement
Add Comment
Please, Sign In to add comment