From 630b3b2482d74486f3abf438f58bc502639b6073 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 15 Sep 2012 10:50:23 +0200 Subject: [PATCH] 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. --- src/position.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/position.cpp b/src/position.cpp index 26f457c5..4bc8df59 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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 static FORCE_INLINE +template 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(const Bitboard*, const Square&, const Bitboard&, B return KING; // No need to update bitboards, it is the last cycle } +} // namespace + /// CheckInfo c'tor -- 2.39.2