From ae89997fbd8663687f7309bae0971ff463c6933d Mon Sep 17 00:00:00 2001 From: Bill Senior Date: Tue, 7 Jan 2025 14:53:38 +0100 Subject: [PATCH] GRIDEDIT-1566 Added return type to lambda --- libs/MeshKernel/src/ConnectMeshes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/MeshKernel/src/ConnectMeshes.cpp b/libs/MeshKernel/src/ConnectMeshes.cpp index 11cd3f10a..d5d24a91e 100644 --- a/libs/MeshKernel/src/ConnectMeshes.cpp +++ b/libs/MeshKernel/src/ConnectMeshes.cpp @@ -60,7 +60,7 @@ void meshkernel::ConnectMeshes::AreEdgesAdjacent(const Mesh2D& mesh, const Point midPoint1 = 0.5 * (edge1Start + edge1End); const Point midPoint2 = 0.5 * (edge2Start + edge2End); - auto IsContainedInBoundingBox = [](const Point& pnt, const Point& boxMidPoint, const double boxHalfLength) + auto IsContainedInBoundingBox = [](const Point& pnt, const Point& boxMidPoint, const double boxHalfLength)->bool { return (pnt.x > boxMidPoint.x - boxHalfLength && pnt.x < boxMidPoint.x + boxHalfLength && pnt.y > boxMidPoint.y - boxHalfLength && pnt.y < boxMidPoint.y + boxHalfLength);