X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fdirection.h;h=0500840a4277ac02240755ebf899b4f335e4038c;hp=4bd0aba7f34418d8fa90386268eee5522383f85a;hb=a5ae7fe26030bdd73a95fde3ebe841abfe84ec5e;hpb=9fc602bae74b8e09bd45ace3b42a8ce84d56b23c diff --git a/src/direction.h b/src/direction.h index 4bd0aba7..0500840a 100644 --- a/src/direction.h +++ b/src/direction.h @@ -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]); }