stephenberry / glaze

Extremely fast, in memory, JSON and interface library for modern C++
MIT License
1.13k stars 113 forks source link

fixes min/max macro conflict in dragonbox.hpp #1298

Closed lambwheit closed 2 weeks ago

lambwheit commented 2 weeks ago

undef original min & max definitions before redefinition in detail namespace, use parentheses to prevent macro expansion in detail::stdr::numeric_limits::max()

stephenberry commented 2 weeks ago

Thanks for this! I'll submit an issue with the dragonbox repository concerning this next week. I'll merge this into main for now.