Commit 97605c86 by Dejan Mircevski

Fix #137 by avoiding a C++11 feature.

Apparently, older MSVC versions don't support brace-initializers for function arguments. Thanks @baldurk for a suggestion on his branch.
parent 7349eab0
...@@ -1804,7 +1804,9 @@ Block& Builder::makeNewBlock() ...@@ -1804,7 +1804,9 @@ Block& Builder::makeNewBlock()
Builder::LoopBlocks& Builder::makeNewLoop() Builder::LoopBlocks& Builder::makeNewLoop()
{ {
loops.push({makeNewBlock(), makeNewBlock(), makeNewBlock(), makeNewBlock()}); // Older MSVC versions don't allow inlining of blocks below.
LoopBlocks blocks = {makeNewBlock(), makeNewBlock(), makeNewBlock(), makeNewBlock()};
loops.push(blocks);
return loops.top(); return loops.top();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment