summaryrefslogtreecommitdiff
path: root/AK/Forward.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-05-07 12:50:54 +0200
committerAndreas Kling <kling@serenityos.org>2022-06-15 17:15:04 +0200
commit75dca629df6bbcb051cf1daf4606cf53654b2494 (patch)
tree47a673de7076ded5224853892f3900015f70531c /AK/Forward.h
parent9e994da2acdec9807a82b3e3356876a2e1dd59b0 (diff)
downloadserenity-75dca629df6bbcb051cf1daf4606cf53654b2494.zip
AK+Kernel: Remove RefPtrTraits template param in userspace code
Only the kernel actually uses RefPtrTraits, so let's not burden userspace builds with the complexity.
Diffstat (limited to 'AK/Forward.h')
-rw-r--r--AK/Forward.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/AK/Forward.h b/AK/Forward.h
index 938c9fcb8f..cced16c5bf 100644
--- a/AK/Forward.h
+++ b/AK/Forward.h
@@ -115,11 +115,16 @@ class NonnullOwnPtrVector;
template<typename T>
class Optional;
+#ifdef KERNEL
template<typename T>
struct RefPtrTraits;
template<typename T, typename PtrTraits = RefPtrTraits<T>>
class RefPtr;
+#else
+template<typename T>
+class RefPtr;
+#endif
template<typename T>
class OwnPtr;