Closed jamesjer closed 6 years ago
Thanks for the report. My plan is instead to rename the iszero() method to is_zero().
Okay. That's probably the better plan, but I didn't want to tinker with eclib's API.
I changed the method name in the includes branch.
Closing since PR#35 fixes this and more.
TS 18661-1 [1][2] introduced a macro named iszero, which is already present in math.h in recent versions of glibc. Since it is a macro, the definition and uses of eclib's iszero method in its Point class are expanded, leading to compilation failure. This patch ensures the macro is not defined where it will cause trouble.
References: [1] https://www.iso.org/standard/63146.html [2] A draft version can be read here: http://www.open-std.org/JTC1/sc22/wg14/www/docs/n1778.pdf