Skip to content

Commit

Permalink
Use boost::is_sorted. Refs #9244.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Apr 3, 2014
1 parent a11f6a7 commit 3c7de6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/Framework/Kernel/src/TimeSeriesProperty.cpp
Expand Up @@ -6,6 +6,7 @@
#include "MantidKernel/TimeSplitter.h"

#include <sstream>
#include <boost/range/algorithm_ext/is_sorted.hpp>

using namespace std;

Expand Down Expand Up @@ -1789,6 +1790,9 @@ namespace Mantid
if (!m_propSortedFlag)
{
// Check whether it is sorted or not
#if 1
m_propSortedFlag = boost::is_sorted(m_values);
#else
size_t numsize = m_values.size();
if (numsize <= 1)
{
Expand All @@ -1806,6 +1810,7 @@ namespace Mantid
break;
}
}
#endif
}

if (!m_propSortedFlag)
Expand Down

0 comments on commit 3c7de6a

Please sign in to comment.