Use templetized operations for Piece

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-08-18 16:54:59 +01:00
parent 8e31764c49
commit 13bd0cff0d
3 changed files with 0 additions and 19 deletions

View File

@@ -58,14 +58,6 @@ extern uint8_t SignedDirectionTable[64][64];
//// Inline functions
////
inline void operator++ (Direction& d, int) {
d = Direction(int(d) + 1);
}
inline void operator++ (SignedDirection& d, int) {
d = SignedDirection(int(d) + 1);
}
inline Direction direction_between_squares(Square s1, Square s2) {
return Direction(DirectionTable[s1][s2]);
}