diff --git a/source/build/include/tracker.hpp b/source/build/include/tracker.hpp index b33e9af69..96e0770da 100644 --- a/source/build/include/tracker.hpp +++ b/source/build/include/tracker.hpp @@ -34,61 +34,61 @@ class TRACKER_NAME__ return this->value--; } - template inline T operator=(Tt operand) + template inline T operator=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value = (T)operand; } - template inline T operator+=(Tt operand) + template inline T operator+=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value += (T)operand; } - template inline T operator-=(Tt operand) + template inline T operator-=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value -= (T)operand; } - template inline T operator*=(Tt operand) + template inline T operator*=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value *= (T)operand; } - template inline T operator/=(Tt operand) + template inline T operator/=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value /= (T)operand; } - template inline T operator|=(Tt operand) + template inline T operator|=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value |= (T)operand; } - template inline T operator&=(Tt operand) + template inline T operator&=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value &= (T)operand; } - template inline T operator^=(Tt operand) + template inline T operator^=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value ^= (T)operand; } - template inline T operator<<=(Tt operand) + template inline T operator<<=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value <<= (T)operand; } - template inline T operator>>=(Tt operand) + template inline T operator>>=(U operand) { TRACKER_HOOK_((intptr_t) & this->value); return this->value >>= (T)operand; @@ -97,13 +97,13 @@ class TRACKER_NAME__ inline operator T() const { return this->value; } inline T cast() const { return this->value; } - - struct is_signed - { - static constexpr bool value = std::is_signed::value; - }; - struct is_unsigned - { - static constexpr bool value = std::is_unsigned::value; - }; +}; + +template struct is_signed> +{ + static constexpr bool value = std::is_signed::value; +}; +template struct is_unsigned> +{ + static constexpr bool value = std::is_unsigned::value; };