|
@@ -16,13 +16,13 @@ namespace chessy
|
|
|
template<typename T>
|
|
|
class chessy::Search
|
|
|
{
|
|
|
- T handler;
|
|
|
+ T& handler;
|
|
|
ChessGame& game;
|
|
|
Board& board;
|
|
|
Bitboard whites;
|
|
|
Bitboard blacks;
|
|
|
public:
|
|
|
- inline Search(T&& handler, ChessGame& game) :
|
|
|
+ inline Search(T& handler, ChessGame& game) :
|
|
|
handler{ handler }, game{ game }, board{ game.getBoard() },
|
|
|
whites{ board.getWhites() }, blacks{ board.getBlacks() } {}
|
|
|
|