]> git.sesse.net Git - stockfish/blobdiff - src/direction.h
Disable templetized operators by default
[stockfish] / src / direction.h
index 4bd0aba7f34418d8fa90386268eee5522383f85a..0500840a4277ac02240755ebf899b4f335e4038c 100644 (file)
@@ -45,6 +45,8 @@ enum SignedDirection {
   SIGNED_DIR_NONE = 8
 };
 
+ENABLE_OPERATORS_ON(SignedDirection);
+
 
 ////
 //// Variables
@@ -58,14 +60,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]);
 }