Added workaround for Debug build mode.

940b4ff55e (commitcomment-1943357)
This commit is contained in:
spx 2012-10-03 15:36:45 -07:00
parent 40e7617ecc
commit c1bd5860f2

View File

@ -481,7 +481,7 @@ bool CMeasure::Update()
m_MedianPos %= MEDIAN_SIZE;
auto medianArray = m_MedianValues;
std::sort(&medianArray[0], &medianArray[MEDIAN_SIZE]);
std::sort(&medianArray.data()[0], &medianArray.data()[MEDIAN_SIZE]); // Workaround for "Debug" build mode
double medianValue = medianArray[MEDIAN_SIZE / 2];
m_MaxValue = max(m_MaxValue, medianValue);