You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <windows.h>
#include "date\date.h"
How can I resolve this?
The text was updated successfully, but these errors were encountered:
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 <windows.h>
#include "date\date.h"
How can I resolve this?
The text was updated successfully, but these errors were encountered: