Closed MrTroble closed 1 year ago
This should fix the following compilation error in MSVC 19.36.32532
While this might also be a compiler bug I am not sure it still would be good to have the comparisions const.
error C2666: 'nifly::Matrix3::operator ==': overloaded functions have similar conversions
note: could be 'bool nifly::Matrix3::operator ==(const nifly::Matrix3 &)'
note: or 'bool nifly::Matrix3::operator ==(const nifly::Matrix3 &)' [synthesized expression 'y == x']
note: while trying to match the argument list '(nifly::Matrix3, nifly::Matrix3)'
I don't get any compiler error/warning from this and neither does cmake https://github.com/ousnius/nifly/actions/workflows/cmake.yml Gonna merge though, thanks.
…e symetrical functions
Equality oprations should be symetrical hence
x == y <=> y == x
therefore both inputs need the same type and therefore need to be const