This line works correctly in a small test program, but in the program for which I want it, I get the following compiler complaints:
#include
Some other header file is polluting the global name space with a max macro. You can fix that by undefining the macro:
#undef max x = std::numeric_limits::max();