projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
25b492a
)
Disable the default copy constructor for Position class
author
Matthew Lai
<m@matthewlai.ca>
Fri, 2 Jan 2015 20:18:49 +0000 (20:18 +0000)
committer
Joona Kiiski
<joona.kiiski@gmail.com>
Fri, 2 Jan 2015 20:19:11 +0000 (20:19 +0000)
No functional change
Resolved #183
src/position.h
patch
|
blob
|
history
diff --git
a/src/position.h
b/src/position.h
index
a2ceb99
..
896619d
100644
(file)
--- a/
src/position.h
+++ b/
src/position.h
@@
-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; }