]> git.sesse.net Git - stockfish/commitdiff
Do not define increment operators on Value, Depth and Direction
authorSergei Ivanov <srg.ivanov@gmail.com>
Sat, 25 May 2019 12:30:32 +0000 (15:30 +0300)
committerStéphane Nicolet <Stephane.Nicolet@u-paris2.fr>
Thu, 27 Jun 2019 07:05:03 +0000 (09:05 +0200)
These operators are never used and do not make sense for these types.

No functional change.

src/types.h

index bee6538fdf59cf8b0c964f7b715dd84e1c2530b4..b9c01fe700c7b8074cc5ccba2f86269200118f94 100644 (file)
@@ -291,7 +291,6 @@ inline T& operator--(T& d) { return d = T(int(d) - 1); }
 
 #define ENABLE_FULL_OPERATORS_ON(T)                                \
 ENABLE_BASE_OPERATORS_ON(T)                                        \
-ENABLE_INCR_OPERATORS_ON(T)                                        \
 constexpr T operator*(int i, T d) { return T(i * int(d)); }        \
 constexpr T operator*(T d, int i) { return T(int(d) * i); }        \
 constexpr T operator/(T d, int i) { return T(int(d) / i); }        \