Windows 10, Visual Studio 2022 set to C++17, error when including date.h
date.h(419,27): warning C4003: not enough arguments for function-like macro invocation 'min':
static CONSTCD11 year min() NOEXCEPT { return year{-32767}; }
Visual Studio claims min() is defined in minwindef.h:
Windows 10, Visual Studio 2022 set to C++17, error when including date.h date.h(419,27): warning C4003: not enough arguments for function-like macro invocation 'min': static CONSTCD11 year min() NOEXCEPT { return year{-32767}; }
Visual Studio claims min() is defined in minwindef.h:
ifndef min
define min(a,b) (((a) < (b)) ? (a) : (b))
endif
The .cpp file starts like this:
include
include "date\date.h"
How can I resolve this?