Merge pull request #138 from dekimir/fix-old-msvc
Fix #137 by avoiding a C++11 feature.
This commit is contained in:
commit
dd1c223561
@ -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…
x
Reference in New Issue
Block a user