From 82cc0783648a99c954066631c57e7b8373f83a6b Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 6 Apr 2019 17:56:11 +0200 Subject: [PATCH] Add missing bitboard operator Fix issues with shogi variants due to upstream merge. --- src/bitboard.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/bitboard.h b/src/bitboard.h index 38db8e0..f7e422a 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -149,6 +149,7 @@ inline Bitboard operator^( Bitboard b, Square s) { return b ^ square_bb(s); } inline Bitboard& operator|=(Bitboard& b, Square s) { return b |= square_bb(s); } inline Bitboard& operator^=(Bitboard& b, Square s) { return b ^= square_bb(s); } +inline Bitboard operator-( Bitboard b, Square s) { return b & ~square_bb(s); } inline Bitboard& operator-=(Bitboard& b, Square s) { return b &= ~square_bb(s); } constexpr bool more_than_one(Bitboard b) { -- 1.7.0.4