max is in <algorithm> and some embedded setups do not have all the language tools. Verify you included it and that it is supported, and if those are good, try max of 3 constants to see if its a variable issue.
it looks like he has a match for
max({item, item, item}) format? which is list without comparison?
is it a type problem, the first is int and the second double?
The error that I get once I compile my code is "E0040: expected an identifier" on this line
Compilers often provide a column number too, which might help identifying the issue.
Otherwise you can try to split your instruction into several lines, to see if the compiler points out another one, like for example:
Maybe the compiler refuses to deal with a temporary (size_t(1u)) or you cannot access m_widthPerStream, which looks like a member variable, without a fully qualified identifier, or… I don’t know :)
Edit: that’s just a casting, I didn’t realize it - it shouldn’t be a problem.