advanpix / mpreal

GNU General Public License v3.0
84 stars 19 forks source link

Definitions of max and min are in conflict with those in <algorithm> #9

Closed cffk closed 2 years ago

cffk commented 3 years ago

The definitions of max and min are in conflict with those in <algorithm> leading to errors of the form "call of overloaded max(...) is ambiguous. The fix is to make the omitnan argument to max and min required.

cantonios commented 3 years ago

+1

advanpix commented 2 years ago

Fixed with the commit 269a03782fa0b87c20470976b88677266c5423ad

cffk commented 2 years ago

Thanks for version 3.6.9! I'm now compiling mpreal support into GeographicLib without needing to apply any patches to mpreal.h.