Monday, March 05, 2007

Visual Studio Quirks

Today's Visual Studio Quirk.

When using Visual Studio 2005 and numeric_limits (from #include ) I get the following error.

"not enough actual parameters for macro 'max'"

To resolve this
#define NOMINMAX in stdafx.h before #include

Thank you Microsoft!!

1 comment:

Anonymous said...

#undef max
before #include might also help to resolve this issue.