Reduce scope for a few local variables?
elfring opened this issue · comments
Markus Elfring commented
A few local variables are declared at the beginning of functions despite of the detail that they are used only a bit later in these implementations.
Will it help to reduce the scope for such variables?
Toni Rönkkö commented
You are right, as always :) Reduction of the scope would improve readability. However, I like to keep the code compatible with older versions of Visual Studio which did require variables to be declared at the beginning of the block.
Markus Elfring commented
How would you interpret the beginning of the block for a possible adjustment?
Toni Rönkkö commented
Older compilers just needed an extra block like in commit b33e10c
Markus Elfring commented
Thanks for your small source code adjustment.