include <limits> early, before min/max macros are defined.
Attach a file by drag & drop or click to upload