mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Disable the default copy constructor for Position class
No functional change Resolved #183
This commit is contained in:
committed by
Joona Kiiski
parent
25b492ab58
commit
19b8249ff4
@@ -76,6 +76,9 @@ class Position {
|
|||||||
|
|
||||||
friend std::ostream& operator<<(std::ostream&, const Position&);
|
friend std::ostream& operator<<(std::ostream&, const Position&);
|
||||||
|
|
||||||
|
// Disable the default copy constructor
|
||||||
|
Position(const Position&);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Position() {}
|
Position() {}
|
||||||
Position(const Position& pos, Thread* th) { *this = pos; thisThread = th; }
|
Position(const Position& pos, Thread* th) { *this = pos; thisThread = th; }
|
||||||
|
|||||||
Reference in New Issue
Block a user