Move initializer_list out of ranged-for loop
For some reason the existing construct has a problem with gcc62. The loop does not do a single iteration, which leads to m_LastVersion
being left as 1
, which in turn leads to test failures
The GCC 4.9 build does not have this problem, and once I do the proposed change all works as expected.
The reason for this is beyond me. @graven, do you know what's going on here?