aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/include/kstd/bits/observer_ptr.hpp (renamed from libs/kstd/include/kstd/observer_ptr)2
-rw-r--r--libs/kstd/include/kstd/memory9
-rw-r--r--libs/kstd/tests/src/observer_ptr.cpp2
3 files changed, 8 insertions, 5 deletions
diff --git a/libs/kstd/include/kstd/observer_ptr b/libs/kstd/include/kstd/bits/observer_ptr.hpp
index a328331..43ea409 100644
--- a/libs/kstd/include/kstd/observer_ptr
+++ b/libs/kstd/include/kstd/bits/observer_ptr.hpp
@@ -1,6 +1,8 @@
#ifndef KSTD_OBSERVER_PTR_HPP
#define KSTD_OBSERVER_PTR_HPP
+// IWYU pragma: private, include <kstd/memory>
+
#include "kstd/os/error.hpp"
#include <compare>
diff --git a/libs/kstd/include/kstd/memory b/libs/kstd/include/kstd/memory
index cab2fba..493f49a 100644
--- a/libs/kstd/include/kstd/memory
+++ b/libs/kstd/include/kstd/memory
@@ -1,7 +1,8 @@
-#ifndef KSTD_SHARED_POINTER_HPP
-#define KSTD_SHARED_POINTER_HPP
+#ifndef KSTD_MEMORY_HPP
+#define KSTD_MEMORY_HPP
-#include "kstd/bits/shared_ptr.hpp" // IWYU pragma: export
-#include "kstd/bits/unique_ptr.hpp" // IWYU pragma: export
+#include "kstd/bits/observer_ptr.hpp" // IWYU pragma: export
+#include "kstd/bits/shared_ptr.hpp" // IWYU pragma: export
+#include "kstd/bits/unique_ptr.hpp" // IWYU pragma: export
#endif \ No newline at end of file
diff --git a/libs/kstd/tests/src/observer_ptr.cpp b/libs/kstd/tests/src/observer_ptr.cpp
index 5d94098..006ebde 100644
--- a/libs/kstd/tests/src/observer_ptr.cpp
+++ b/libs/kstd/tests/src/observer_ptr.cpp
@@ -1,4 +1,4 @@
-#include <kstd/observer_ptr>
+#include <kstd/memory>
#include <kstd/tests/os_panic.hpp>
#include <catch2/catch_test_macros.hpp>