News for hackers. Stuff that matters.
Re:Why Does “=” Mean Assignment? by gumby on Tuesday April 10, 2018 @05:16PM (#16805523)
In C++17 not only can you do assignment in the conditional, you can declare new variables which have the scope of the then and else clauses.

But yes, most compilers will catch this case.

Re:Why Does “=” Mean Assignment? by gowld on Wednesday April 11, 2018 @12:55AM (#16808149)
The compiler warns unless you add an extra () around the assignment to signal that you mean it.