From 6b6cb69273aafaade62ff60216ac8d3ab41f2c82 Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Tue, 21 Sep 2021 18:56:39 -0400 Subject: [PATCH] Include headers for everything used in std:: (#96) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Manual implementation of the “include what you use” idea, i.e., do not rely on implementation-dependent recursive includes. Added: - cstddef for: std::size_t - limits for: std::numeric_limits - utility for: std::forward, std::move Assumed to be specialized in user code, or a header included therefrom: std::get, std::tuple_element --- include/mapbox/earcut.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mapbox/earcut.hpp b/include/mapbox/earcut.hpp index 01bd7e9..e7d4308 100644 --- a/include/mapbox/earcut.hpp +++ b/include/mapbox/earcut.hpp @@ -3,7 +3,10 @@ #include #include #include +#include +#include #include +#include #include namespace mapbox {