Skip to content

Commit

Permalink
Include headers for everything used in std:: (#96)
Browse files Browse the repository at this point in the history
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<Point>, std::tuple_element<Point>
  • Loading branch information
musicinmybrain authored Sep 21, 2021
1 parent b28acde commit 6b6cb69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/mapbox/earcut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <limits>
#include <memory>
#include <utility>
#include <vector>

namespace mapbox {
Expand Down

0 comments on commit 6b6cb69

Please sign in to comment.