7 Jan
2008
7 Jan
'08
5:25 p.m.
AMDG
Hicham Mouline
#include <iostream> #include <algorithm> int main() { const double d = std::max(5.0, 6.0); return 0; } This works fine. The strange thing is that when adding #include
before or after <algorithm> Inclusing of that header seems somehow to damage "max".
max is defined as a macro by a microsoft header included from windows.h Use (std::max)(5.0, 6.0) In Christ, Steven Watanabe