ipc_templating: Avoid depending on order of evaluation (#83)
f(x, x++) is unspecified behaviour in C++. An implementation could
evaluate arguments from left to right or from right to left.

`T(r.Buffers[a_index], r.BufferSizes[a_index++])` might
access the wrong buffer if `a_index++` is evaluated before the first
argument.

Fixes -Wsequence-point warnings
1 parent 30b9873 commit cf50bad36cd2023e4a00ad4a563c6a1b62641248
@Léo Lam Léo Lam authored on 5 May 2018
SciresM committed on 5 May 2018
Showing 1 changed file
View
stratosphere/libstratosphere/include/stratosphere/ipc_templating.hpp