int k = std::min(3, 4);
error C2589: '(' : illegal token on right side of '::'
error C2059: syntax error : '::'
windows.h header file (or more correctly,
windef.h that it includes in turn) has macros for
max which are interfering.
#define NOMINMAX before including it.