Skip to content

Commit 3ca7ff7

Browse files
committed
Timeout: explicitly delete #Timeout(const Timeout&), #Timeout(Timeout&&), #operator=(const Timeout&), #operator=(Timeout&&)
1 parent 27e0e23 commit 3ca7ff7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/base/io-engine.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ class Timeout
187187
));
188188
}
189189

190+
Timeout(const Timeout&) = delete;
191+
Timeout(Timeout&&) = delete;
192+
Timeout& operator=(const Timeout&) = delete;
193+
Timeout& operator=(Timeout&&) = delete;
194+
190195
~Timeout()
191196
{
192197
Cancel();

0 commit comments

Comments
 (0)