Add missing bitboard operator
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 6 Apr 2019 15:56:11 +0000 (17:56 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 6 Apr 2019 15:56:11 +0000 (17:56 +0200)
Fix issues with shogi variants due to upstream merge.

src/bitboard.h

index 38db8e0..f7e422a 100644 (file)
@@ -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) {