4 ms·
Other things to prevent this error: 1) Don't ever use assignment in a conditional expression, even on purpose. 2) Aggressively declare everything as const, even
by altano 18y ago
Other things to prevent this error:
1) Don't ever use assignment in a conditional expression, even on purpose.
2) Aggressively declare everything as const, even scalar input parameters to your function.
3) Use code analysis tools that treat this as a warning, which you should be treating as an error.