color_of() use constexpr instead of inline to fix build error

This commit is contained in:
Calcitem 2020-12-20 12:25:25 +08:00
parent 6c7d6a81cd
commit 351421263f
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ constexpr Piece make_piece(Color c, PieceType pt)
return NO_PIECE;
}
inline Color color_of(Piece pc)
constexpr Color color_of(Piece pc)
{
return Color(pc >> 4);
}