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.
This commit is contained in:
parent
7349eab099
commit
97605c86fd
1 changed files with 3 additions and 1 deletions
|
|
@ -1804,7 +1804,9 @@ Block& Builder::makeNewBlock()
|
|||
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue