diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index b242c93a..e55be1a6 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -225,10 +225,13 @@ TEST_CASE("MessagePack") SECTION("-32769..-2147483648") { - for (auto i : std::vector( - { - -32769, -65536, -77777, -1048576, -2147483648 - })) + std::vector numbers; + numbers.push_back(-32769); + numbers.push_back(-65536); + numbers.push_back(-77777); + numbers.push_back(-1048576); + numbers.push_back(-2147483648); + for (auto i : numbers) { CAPTURE(i);