Closed sts1skj closed 2 years ago
Templating would make sense so that any numeric type could be used, but it can also cause uncertain behavior when a type is used that results in weird arithmetic or casts when used in the templated function.
So, for now, I prefer not having the operators templated.
@sts1skj This breaks x86 builds of nifly/Outfit Studio because the same operators are already defined for uint32_t. We need to remove the uint32_t operators or alternatively change the size_t operators into uint64_t ones.
Either of those options sounds good to me. I would pick changing size_t to uint64_t, if that works on x86.
Maybe these functions should be templated on the second, numeric variable.