Skip to content

Commit

Permalink
refs #12694. Do not use r-iterators.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Sep 8, 2015
1 parent 7c5d62b commit b54a627
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Code/Mantid/Framework/MDAlgorithms/test/ReplicateMDTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ MDHistoWorkspace_sptr makeHistoWorkspace(const std::vector<int> &shape, bool tra

if(transpose){

class Increasing{
class Decreasing{
private:
int m_current;
public:
Increasing(int start) : m_current(start){}
int operator()() {return m_current++;}
Decreasing(int start) : m_current(start){}
int operator()() {return --m_current;}
};

// Generate the axis order 0, 1, 2 ... in reverse
std::vector<int> axes(outWs->getNumDims());
Increasing op(0);
std::generate(axes.rbegin(), axes.rend(), op);
Decreasing op(outWs->getNumDims());
std::generate(axes.begin(), axes.end(), op);

IAlgorithm *transpose =
FrameworkManager::Instance().createAlgorithm("TransposeMD");
Expand Down

0 comments on commit b54a627

Please sign in to comment.