mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[chore] fix new linter (#145756)
Summary: Fix new linter that's complaining when I made changes to this file: class 'LibUVStoreDaemon' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator Test Plan: make lint passes Differential Revision: [D68733191](https://our.internmc.facebook.com/intern/diff/D68733191) Pull Request resolved: https://github.com/pytorch/pytorch/pull/145756 Approved by: https://github.com/XilunWu, https://github.com/Skylion007, https://github.com/fduwjj
This commit is contained in:
committed by
PyTorch MergeBot
parent
2de53b3b65
commit
5534c270db
@ -618,6 +618,15 @@ class ChunkedStream {
|
||||
class LibUVStoreDaemon : public BackgroundThread {
|
||||
public:
|
||||
explicit LibUVStoreDaemon(int port);
|
||||
// Disable copy constructor
|
||||
LibUVStoreDaemon(const LibUVStoreDaemon& other) = delete;
|
||||
// Disable move constructor
|
||||
LibUVStoreDaemon(LibUVStoreDaemon&& other) = delete;
|
||||
// Disable copy assignment operator
|
||||
LibUVStoreDaemon& operator=(const LibUVStoreDaemon& other) = delete;
|
||||
// Disable move assignment operator
|
||||
LibUVStoreDaemon& operator=(LibUVStoreDaemon&& other) = delete;
|
||||
|
||||
~LibUVStoreDaemon() override;
|
||||
|
||||
uint16_t port() const override;
|
||||
|
Reference in New Issue
Block a user