date
date copied to clipboard
Compiler error on windows around use of min
Simple fix is the wrap the word min and max in () such as:
static CONSTCD11 year (min)() NOEXCEPT { return year{-32767}; }
static CONSTCD11 year (max)() NOEXCEPT { return year{32767}; }
Taking from fmtlib's handling of min and max this is the easiest way to fix this issue.
Another good fix is to compile with NOMINMAX
defined.