Login Page - Create Account

Support Board


Date/Time: Mon, 12 May 2025 11:17:44 +0000



Post From: ACSIL help with max()

[2023-05-15 10:54:24]
User92573 - Posts: 560
Dear Support Board

I'm hoping someone can help with this error message.


How can ...

int& iGetMax = sc.GetPersistentInt(1);

iGetMax = max(2,3,4,5); // I'm expecting the largest element, iGetMax = 5.

Produce " warning C4002: too many actual parameters for macro 'max'"

Obviously a simple error but not sure why it's occurring.

Any help appreciated.

Many thanks