Fixes from compiling with gcc 12

pull/840/head
Mike Bell 2023-09-10 23:03:55 +01:00 zatwierdzone przez Mike Bell
rodzic cdd648f3f6
commit 80e1e16782
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -6,6 +6,7 @@
#include <new>
#include <filesystem>
#include <fstream>
#include <functional>
#include "pretty_poly_types.hpp"

Wyświetl plik

@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <math.h>
#include <vector>
#ifdef PP_DEBUG
#define debug(...) printf(__VA_ARGS__)
@ -138,7 +139,7 @@ namespace pretty_poly {
unsigned count;
contour_t() {}
contour_t(std::vector<point_t<T>> v) : points(v.data()), count(v.size()) {};
contour_t(const std::vector<point_t<T>>& v) : points(v.data()), count(v.size()) {};
contour_t(point_t<T> *points, unsigned count) : points(points), count(count) {};
// TODO: Make this work, it's so much nicer to use auto point : contour