Explicitly defaulted and deleted members

Better than a bit obscure implicit ones.

No functional change.
This commit is contained in:
Marco Costalba
2015-01-21 13:18:19 +01:00
parent 2ca2c3f35b
commit 96e36a7897
6 changed files with 12 additions and 17 deletions

View File

@@ -80,10 +80,10 @@ typedef Stats<false, std::pair<Move, Move> > MovesStats;
/// to get a cut-off first.
class MovePicker {
MovePicker& operator=(const MovePicker&); // Silence a warning under MSVC
public:
MovePicker(const MovePicker&) = delete;
MovePicker& operator=(const MovePicker&) = delete;
MovePicker(const Position&, Move, Depth, const HistoryStats&, Square);
MovePicker(const Position&, Move, const HistoryStats&, PieceType);
MovePicker(const Position&, Move, Depth, const HistoryStats&, Move*, Move*, Search::Stack*);