Skip to content

Commit 4d391bf

Browse files
author
peng.li24
committed
fix: add Polygon forward declaration in polygon.h for LinearRing friend
1 parent a402c29 commit 4d391bf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

shapely/geometry/polygon.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ template <typename T> class LineString;
2424
#ifndef SHAPELY_GEOMETRY_POINT_DEFINED
2525
template <typename T> class Point;
2626
#endif
27+
#ifndef SHAPELY_GEOMETRY_POLYGON_DEFINED
28+
template <typename T> class Polygon;
29+
#endif
2730

2831
// ============================================================================
2932
// LinearRing (Python: shapely/geometry/polygon.py L23-L107)

0 commit comments

Comments
 (0)