Use templetized operations for Piece
[stockfish] / src / direction.h
index 4bd0aba7f34418d8fa90386268eee5522383f85a..399a628ba21c9bcbcfa50366e0dd54334df3c4db 100644 (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]);
 }