Skip to content

Commit

Permalink
fixed missing <functional> include
Browse files Browse the repository at this point in the history
this include is required for cmake support for placeholder binding, see
also: https://github.com/buddhi1980/mandelbulber2/pull/
349#issuecomment-342001227
  • Loading branch information
zebastian committed Nov 6, 2017
1 parent 53c3c1a commit 3617e92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mandelbulber2/src/opencl_engine_render_fractal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#include "opencl_engine_render_fractal.h"

#include <functional>

#include <QtAlgorithms>

#include "camera_target.hpp"
Expand Down Expand Up @@ -833,9 +835,9 @@ QList<QPoint> cOpenClEngineRenderFractal::calculateOptimalTileSequence(
{
tiles.append(QPoint(i % gridWidth, i / gridWidth));
}
using namespace std::placeholders;
qSort(tiles.begin(), tiles.end(),
std::bind(cOpenClEngineRenderFractal::sortByCenterDistanceAsc, _1, _2, gridWidth, gridHeight));
std::bind(cOpenClEngineRenderFractal::sortByCenterDistanceAsc, std::placeholders::_1,
std::placeholders::_2, gridWidth, gridHeight));
return tiles;
}

Expand Down

0 comments on commit 3617e92

Please sign in to comment.