aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-02-26 12:32:26 +0100
committerFelix Morgner <felix.morgner@gmail.com>2025-02-26 12:32:26 +0100
commitd9ab9b52be6950f5429d9b9b4d3596599f53449d (patch)
tree97db957215a328adf5716c60d646cff3b2a9cce5
parent217f458a5e98f720a26697af97772c76c51828ae (diff)
downloadnewtype-d9ab9b52be6950f5429d9b9b4d3596599f53449d.tar.xz
newtype-d9ab9b52be6950f5429d9b9b4d3596599f53449d.zip
lib: add missing includes
-rw-r--r--.clangd6
-rw-r--r--lib/include/newtype/newtype.hpp4
2 files changed, 8 insertions, 2 deletions
diff --git a/.clangd b/.clangd
index 8368a45..ba15e35 100644
--- a/.clangd
+++ b/.clangd
@@ -1,2 +1,6 @@
CompileFlags:
- Remove: ["-fmodules-ts", "-fmodule-mapper=*", "-fdeps-format=*"] \ No newline at end of file
+ Remove: ["-fmodules-ts", "-fmodule-mapper=*", "-fdeps-format=*"]
+
+Diagnostics:
+ UnusedIncludes: Strict
+ MissingIncludes: Strict \ No newline at end of file
diff --git a/lib/include/newtype/newtype.hpp b/lib/include/newtype/newtype.hpp
index 2154223..f5dce61 100644
--- a/lib/include/newtype/newtype.hpp
+++ b/lib/include/newtype/newtype.hpp
@@ -7,12 +7,14 @@
#include <algorithm>
#include <compare>
+#include <concepts>
+#include <cstddef>
#include <functional>
+#include <iterator>
#ifdef HAS_I_O_STREAM
#include <istream>
#include <ostream>
#endif
-#include <iterator>
#include <type_traits>
#include <utility>