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:
Marco Costalba
2009-03-04 23:11:23 +01:00
parent 7fe1632a49
commit 8c9c51c721
2 changed files with 18 additions and 8 deletions

View File

@@ -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;
}