From c7e8b87ab89fe9dd33afdc0df763cb371f0b5b41 Mon Sep 17 00:00:00 2001 From: Jan Zapletal Date: Tue, 29 Mar 2022 15:51:01 +0200 Subject: [PATCH] MAINT: osx support --- Box.hpp | 2 ++ CloudUtils.hpp | 2 +- Graph.hpp | 12 ++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Box.hpp b/Box.hpp index 87646f0..839be91 100644 --- a/Box.hpp +++ b/Box.hpp @@ -1,5 +1,7 @@ #pragma once +#include + #include "Vector.hpp" namespace Pvl { diff --git a/CloudUtils.hpp b/CloudUtils.hpp index 0bf4113..7fcb195 100644 --- a/CloudUtils.hpp +++ b/CloudUtils.hpp @@ -146,7 +146,7 @@ void orientNormals(Cloud& cloud, Normals& normals) { } // declare component 0 as correct - for (int c = 1; c < componentIdx; ++c) { + for (std::size_t c = 1; c < componentIdx; ++c) { int votes = 0; for (std::size_t i = 0; i < cloud.size(); ++i) { if (indices[i] != c) { diff --git a/Graph.hpp b/Graph.hpp index 7ea199f..5ab0293 100644 --- a/Graph.hpp +++ b/Graph.hpp @@ -42,10 +42,10 @@ class Handle { } }; -class HalfEdge; -class Vertex; -class Face; -class Edge; +struct HalfEdge; +struct Vertex; +struct Face; +struct Edge; class Graph; using HalfEdgeHandle = Handle; @@ -253,8 +253,8 @@ struct Edge {}; // template class Graph { - friend class Vertex; - friend class Face; + friend struct Vertex; + friend struct Face; std::vector vertices_; std::vector faces_;