hey... im writing on a project which includes <windows.h> and <limits> for numeric_limits...
but when i want to do: cin.ignore(numeric_limits::max());
it resolves ::max() to the max(a,b)-Macro defined in windows.h so i have to give it 2 parameters... but thats not waht i want...
windows.h predates C++ in the Microsoft world by many years. It is the only file you need to include to get all the junk you need for Windows GUI programming.
The guys at Microsoft recognised this and added a set of switches you can define to turn off parts of it, the most generally useful being WIN32_LEAN_AND_MEAN. Anyway, defining NOMINMAX is the recomended way of switching off min/max macros.