mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Fix compile error with inlines under gcc and Intel
It seems that these compilers do not like inline functions that call a template when template definition is not in scope. So move functions from header to in *.cpp file Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -566,14 +566,6 @@ inline Bitboard Position::checkers() const {
|
||||
return st->checkersBB;
|
||||
}
|
||||
|
||||
inline Bitboard Position::pinned_pieces(Color c) const {
|
||||
return hidden_checkers<true>(c);
|
||||
}
|
||||
|
||||
inline Bitboard Position::discovered_check_candidates(Color c) const {
|
||||
return hidden_checkers<false>(c);
|
||||
}
|
||||
|
||||
inline bool Position::is_check() const {
|
||||
return st->checkersBB != EmptyBoardBB;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user