From 65cff4a4a83991f502b530de4f34ad319d904d37 Mon Sep 17 00:00:00 2001 From: "Abhishek Dilip Yenpure (-EXP)" Date: Mon, 22 Jul 2019 09:03:08 -0600 Subject: [PATCH] Removing constexpr from if conditions --- vtkm/exec/CellLocatorRectilinearGrid.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vtkm/exec/CellLocatorRectilinearGrid.h b/vtkm/exec/CellLocatorRectilinearGrid.h index c776e1fd8..9e09c628c 100644 --- a/vtkm/exec/CellLocatorRectilinearGrid.h +++ b/vtkm/exec/CellLocatorRectilinearGrid.h @@ -65,8 +65,8 @@ public: this->MinPoint[1] = coords.GetPortalConstControl().GetSecondPortal().Get(0); this->MaxPoint[1] = coords.GetPortalConstControl().GetSecondPortal().Get(PointDimensions[1] - 1); - if - constexpr(dimensions == 2) return; + if (dimensions == 2) + return; this->AxisPortals[2] = Coords.GetThirdPortal(); this->MinPoint[2] = coords.GetPortalConstControl().GetThirdPortal().Get(0); @@ -87,8 +87,8 @@ public: inside = false; if (point[1] < this->MinPoint[1] || point[1] > this->MaxPoint[1]) inside = false; - if - constexpr(dimensions == 2) return inside; + if (dimensions == 2) + return inside; if (point[2] < this->MinPoint[2] || point[2] > this->MaxPoint[2]) inside = false; return inside;