color_of() use constexpr instead of inline to fix build error
This commit is contained in:
parent
6c7d6a81cd
commit
351421263f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue