Browse Source

Workaround for a VS2014 compiler bug.

tags/2021-05-28
jules 11 years ago
parent
commit
cde93f6e88
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      modules/juce_core/containers/juce_Array.h

+ 5
- 1
modules/juce_core/containers/juce_Array.h View File

@@ -474,7 +474,11 @@ public:
numUsed += numberOfTimesToInsertIt; numUsed += numberOfTimesToInsertIt;
while (--numberOfTimesToInsertIt >= 0) while (--numberOfTimesToInsertIt >= 0)
new (insertPos++) ElementType (newElement);
{
new (insertPos) ElementType (newElement);
++insertPos; // NB: this increment is done separately from the
// new statement to avoid a compiler bug in VS2014
}
} }
} }


Loading…
Cancel
Save