Skip to content

Commit

Permalink
Add const in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Oct 2, 2024
1 parent a661671 commit 41346b3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using Multipolygon_with_holes_2 = CGAL::Multipolygon_with_holes_2<Kernel>;

int main(int argc, char* argv[]) {

char* filename = (argc > 1) ? argv[1] : "data/bridge-edge.wkt";
const char* filename = (argc > 1) ? argv[1] : "data/bridge-edge.wkt";

std::ifstream in(filename);
Polygon_with_holes_2 pin;
Expand Down
35 changes: 35 additions & 0 deletions Polygon_repair/include/CGAL/Polygon_repair/Union_rule.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright (c) 2024 GeometryFactory.
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Andreas Fabri

#ifndef CGAL_POLYGON_REPAIR_UNION_RULE_H
#define CGAL_POLYGON_REPAIR_UNION_RULE_H

#include <CGAL/license/Polygon_repair.h>

namespace CGAL {

namespace Polygon_repair {

/// \addtogroup PkgPolygonRepairRef
/// @{

/*!
Tag class to select the union rule when calling `CGAL::Polygon_repair::repair()`.
*/
struct Union_rule {};

///@}

} // namespace Polygon_repair

} // namespace CGAL

#endif // CGAL_POLYGON_REPAIR_UNION_RULE_H

0 comments on commit 41346b3

Please sign in to comment.