mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Fix compile with Intel 13.0
It seems Intel is unable to properly workout templates with 'static' storage specifier. Workaround using an anonymous namespace instead. No functional change.
This commit is contained in:
parent
6008f6538e
commit
630b3b2482
1 changed files with 5 additions and 1 deletions
|
@ -102,11 +102,13 @@ void init() {
|
|||
} // namespace Zobrist
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
/// next_attacker() is an helper function used by see() to locate the least
|
||||
/// valuable attacker for the side to move, remove the attacker we just found
|
||||
/// from the 'occupied' bitboard and scan for new X-ray attacks behind it.
|
||||
|
||||
template<int Pt> static FORCE_INLINE
|
||||
template<int Pt> FORCE_INLINE
|
||||
PieceType next_attacker(const Bitboard* bb, const Square& to, const Bitboard& stmAttackers,
|
||||
Bitboard& occupied, Bitboard& attackers) {
|
||||
|
||||
|
@ -131,6 +133,8 @@ PieceType next_attacker<KING>(const Bitboard*, const Square&, const Bitboard&, B
|
|||
return KING; // No need to update bitboards, it is the last cycle
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
/// CheckInfo c'tor
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue