mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
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.
This commit is contained in:
parent
a8de07cc26
commit
8b4521df83
1 changed files with 0 additions and 1 deletions
|
@ -291,7 +291,6 @@ inline T& operator--(T& d) { return d = T(int(d) - 1); }
|
||||||
|
|
||||||
#define ENABLE_FULL_OPERATORS_ON(T) \
|
#define ENABLE_FULL_OPERATORS_ON(T) \
|
||||||
ENABLE_BASE_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*(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); } \
|
||||||
constexpr T operator/(T d, int i) { return T(int(d) / i); } \
|
constexpr T operator/(T d, int i) { return T(int(d) / i); } \
|
||||||
|
|
Loading…
Add table
Reference in a new issue