mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Disable the default copy constructor for Position class
No functional change Resolved #183
This commit is contained in:
parent
25b492ab58
commit
19b8249ff4
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ class Position {
|
|||
|
||||
friend std::ostream& operator<<(std::ostream&, const Position&);
|
||||
|
||||
// Disable the default copy constructor
|
||||
Position(const Position&);
|
||||
|
||||
public:
|
||||
Position() {}
|
||||
Position(const Position& pos, Thread* th) { *this = pos; thisThread = th; }
|
||||
|
|
Loading…
Add table
Reference in a new issue