Timeout: explicitly delete #Timeout(const Timeout&), #Timeout(Timeout&&), #operator=(const Timeout&), #operator=(Timeout&&)

This commit is contained in:
Alexander A. Klimov 2024-12-02 17:00:02 +01:00
parent 27e0e236cb
commit 3ca7ff7bf4
1 changed files with 5 additions and 0 deletions

View File

@ -187,6 +187,11 @@ public:
));
}
Timeout(const Timeout&) = delete;
Timeout(Timeout&&) = delete;
Timeout& operator=(const Timeout&) = delete;
Timeout& operator=(Timeout&&) = delete;
~Timeout()
{
Cancel();