Advertisement
Ilya_Bykonya

Untitled

Mar 21st, 2024
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | Source Code | 0 0
  1. protected:
  2.     virtual void terminate(std::chrono:milliseconds) = 0;
  3.  
  4. public:
  5.     template <typename Rep, typename Period>
  6.     virtual bool terminate(chrono::duration<Rep, Period> timeout) {
  7.         terminate(std::chrono_duration_cast<std::chrono:milliseconds>(timeout));
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement