I'm having a problem with std::max
. I can't figure it out.
int border = 35;
int myInt = 2;
int myOtherInt = 3;
int z = std::max(myInt + 2 * border, myOtherInt + 2 * border);
I've included the algorithm standard header. When I mouse over max, I am getting:
Error: expected an identifier
And a compile errors of:
error C2589:
'('
: illegal token on right side of'::'
error C2059: syntax error :'::'
What is wrong?
See Question&Answers more detail:os