Skip to content

Commit 4fcc73d

Browse files
committed
Apply rule of 5 to AnchorGenerator
1 parent 8945fa5 commit 4fcc73d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/anchor.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class AnchorGenerator
4646

4747
private:
4848
AnchorGenerator();
49+
AnchorGenerator(const AnchorGenerator &) = delete;
50+
AnchorGenerator &operator=(const AnchorGenerator &) = delete;
51+
AnchorGenerator(AnchorGenerator &&) = delete;
52+
AnchorGenerator &operator=(AnchorGenerator &&) = delete;
4953
~AnchorGenerator();
5054
struct Private;
5155
std::unique_ptr<Private> p;

0 commit comments

Comments
 (0)