mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-05 20:23:48 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -114,7 +114,7 @@ impl::Polygon PointsToPolygon(Container const & points)
|
||||
template <typename Container>
|
||||
impl::MultiPolygon TrianglesToPolygon(Container const & points)
|
||||
{
|
||||
size_t const kTriangleSize = 3;
|
||||
size_t constexpr kTriangleSize = 3;
|
||||
if (points.size() % kTriangleSize != 0)
|
||||
MYTHROW(geometry::NotAPolygonException, ("Count of points must be multiple of", kTriangleSize));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user