- Not using std::max/min as it clashes with a define in windef.