From 8b4521df83fb08c1b76e99b0ef9d4611b22bfbf3 Mon Sep 17 00:00:00 2001 From: Sergei Ivanov Date: Sat, 25 May 2019 15:30:32 +0300 Subject: [PATCH] Do not define increment operators on Value, Depth and Direction These operators are never used and do not make sense for these types. No functional change. --- src/types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/types.h b/src/types.h index bee6538f..b9c01fe7 100644 --- a/src/types.h +++ b/src/types.h @@ -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); } \ -- 2.39.2