Commit 7d702bcc authored by Joachim Pouderoux's avatar Joachim Pouderoux

Add algorithm header for std::max function.

This generates an error with Visual C++ 2013.
See http://blogs.msdn.com/b/vcblog/archive/2013/06/28/c-11-14-stl-features-fixes-and-breaking-changes-in-vs-2013.aspx
This is a breaking change in VS2013 to be conform to C++11:
"You must #include <algorithm> when calling std::min() or std::max()"

Change-Id: Ib43dfe0b7bf249d23bd6539f0f3b0e38bc9af5b2
parent 1ad7bf0f
......@@ -15,6 +15,7 @@
#include "vtkContextPolygon.h"
#include <algorithm>
#include <vector>
#include "vtkTransform2D.h"
......
......@@ -29,6 +29,8 @@
#include "vtkTransform2D.h"
#include "vtkNew.h"
#include <algorithm>
enum enumPointHandleType
{
enSharpNess=0,
......
......@@ -20,6 +20,7 @@
#include "vtkUnicodeStringArray.h"
#include <vector>
#include <algorithm>
class vtkUnicodeStringArray::Implementation
{
......
......@@ -16,6 +16,7 @@
#include "vtkMappedUnstructuredGrid.h"
#include "vtkGenericCell.h"
#include <algorithm>
//------------------------------------------------------------------------------
template <class Implementation, class CellIterator>
......
......@@ -47,6 +47,7 @@
#include "vtkSmartPointer.h"
#include "vtkContourHelper.h"
#include <algorithm>
#include <math.h>
vtkStandardNewMacro(vtkCutter);
......
......@@ -25,6 +25,8 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkMath.h"
#include <algorithm>
vtkStandardNewMacro(vtkThreshold);
// Construct with lower threshold=0, upper threshold=1, and threshold
......
......@@ -28,6 +28,8 @@
#include "vtkSmartPointer.h"
#include "vtkTypedArray.h"
#include <algorithm>
///////////////////////////////////////////////////////////////////////////////
// vtkNormalizeMatrixVectors
......
......@@ -40,6 +40,7 @@ PURPOSE. See the above copyright notice for more information.
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
//------------------------------------------------------------------------------
#include <algorithm>
#include <set>
#include <vector>
#include <string>
......
......@@ -29,6 +29,7 @@
#include "vtkPointLocator.h"
#include "vtkNew.h"
#include <algorithm>
#include <ctype.h>
......
......@@ -31,6 +31,7 @@
#include "vtkSmartPointer.h"
#include "vtkTable.h"
#include <algorithm>
#include <vtksys/stl/map>
#include <vtksys/stl/functional>
......
......@@ -11,6 +11,7 @@
#include "vtkVariant.h"
#include "vtkVector.h"
#include <algorithm>
#include <utility>
#include <vector>
......
......@@ -17,6 +17,8 @@
#include "vtkImageData.h"
#include <algorithm>
//-----------------------------------------------------------------------------
vtkMarkerUtilities::vtkMarkerUtilities()
{
......
......@@ -29,6 +29,8 @@
#include "vtkTextRenderer.h"
#include "vtkTexture.h"
#include <algorithm>
//----------------------------------------------------------------------------
vtkObjectFactoryNewMacro(vtkTextMapper)
//----------------------------------------------------------------------------
......
......@@ -27,6 +27,8 @@
#include "vtkDebugLeaks.h"
#endif
#include <algorithm>
//----------------------------------------------------------------------------
vtkInstantiatorNewMacro(vtkMathTextUtilities)
......
......@@ -30,6 +30,8 @@
#include "vtkTextRenderer.h"
#include "vtkRenderer.h"
#include <algorithm>
vtkStandardNewMacro(vtkTextActor);
vtkCxxSetObjectMacro(vtkTextActor,Texture,vtkTexture);
......
......@@ -78,6 +78,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkUnsignedIntArray.h"
#include "vtkViewTheme.h"
#include <algorithm>
#include <vector>
#include <vtksys/ios/sstream>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment