Skip to content

Commit

Permalink
Fixes from compiling with gcc 12
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Sep 10, 2023
1 parent cdd648f commit 80e1e16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions libraries/pico_vector/pretty_poly.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <new>
#include <filesystem>
#include <fstream>
#include <functional>

#include "pretty_poly_types.hpp"

Expand Down
3 changes: 2 additions & 1 deletion libraries/pico_vector/pretty_poly_types.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <math.h>
#include <vector>

#ifdef PP_DEBUG
#define debug(...) printf(__VA_ARGS__)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 80e1e16

Please sign in to comment.