From d3b22f1393eb31279647b1fe2aadc1e804a15fe2 Mon Sep 17 00:00:00 2001 From: gorloffslava <31761951+gorloffslava@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:40:08 +0500 Subject: [PATCH] fix building in C++23 language mode (#1122) Thanks to @BwL1289 --- include/geos/constants.h | 1 + include/geos/coverage/CoverageRingEdges.h | 1 + include/geos/geom/Geometry.h | 1 + include/geos/operation/buffer/BufferOp.h | 1 + include/geos/operation/buffer/OffsetCurveSection.h | 1 + 5 files changed, 5 insertions(+) diff --git a/include/geos/constants.h b/include/geos/constants.h index 7d58ca3d52..3781bccbf6 100644 --- a/include/geos/constants.h +++ b/include/geos/constants.h @@ -29,6 +29,7 @@ typedef __int64 int64; #include #include #include +#include // for std::size_t namespace geos { diff --git a/include/geos/coverage/CoverageRingEdges.h b/include/geos/coverage/CoverageRingEdges.h index d6014c2d39..ec28098525 100644 --- a/include/geos/coverage/CoverageRingEdges.h +++ b/include/geos/coverage/CoverageRingEdges.h @@ -17,6 +17,7 @@ #include #include +#include // to materialize CoverageEdge #include #include diff --git a/include/geos/geom/Geometry.h b/include/geos/geom/Geometry.h index 3661bf8862..114f4c0391 100644 --- a/include/geos/geom/Geometry.h +++ b/include/geos/geom/Geometry.h @@ -34,6 +34,7 @@ #include #include // for Dimension::DimensionType #include // for inheritance +#include // to materialize CoordinateSequence #include #include diff --git a/include/geos/operation/buffer/BufferOp.h b/include/geos/operation/buffer/BufferOp.h index 9d2b18a1b2..6339ca8952 100644 --- a/include/geos/operation/buffer/BufferOp.h +++ b/include/geos/operation/buffer/BufferOp.h @@ -25,6 +25,7 @@ #include #include // for enum values +#include // to materialize Geometry #include // for composition diff --git a/include/geos/operation/buffer/OffsetCurveSection.h b/include/geos/operation/buffer/OffsetCurveSection.h index fe8d9035ee..e73d759ce5 100644 --- a/include/geos/operation/buffer/OffsetCurveSection.h +++ b/include/geos/operation/buffer/OffsetCurveSection.h @@ -16,6 +16,7 @@ #pragma once #include +#include // to materialize CoordinateSequence #include #include