Skip to content

Commit

Permalink
refs #12694. Remove use of std::generate.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Sep 8, 2015
1 parent b54a627 commit d00ce56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/MDAlgorithms/test/ReplicateMDTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "MantidTestHelpers/MDEventsTestHelper.h"
#include <string>
#include <vector>
#include <algorithm>
#include <boost/assign/list_of.hpp>

using namespace Mantid::MDAlgorithms;
Expand Down Expand Up @@ -67,7 +66,9 @@ MDHistoWorkspace_sptr makeHistoWorkspace(const std::vector<int> &shape, bool tra
// Generate the axis order 0, 1, 2 ... in reverse
std::vector<int> axes(outWs->getNumDims());
Decreasing op(outWs->getNumDims());
std::generate(axes.begin(), axes.end(), op);
for(auto it = axes.begin(); it != axes.end(); ++it){
*it = op();
}

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

0 comments on commit d00ce56

Please sign in to comment.