diff --git a/AK/WeakPtr.h b/AK/WeakPtr.h index c6d3dc545d..ad94755de9 100644 --- a/AK/WeakPtr.h +++ b/AK/WeakPtr.h @@ -18,6 +18,16 @@ class [[nodiscard]] WeakPtr { public: WeakPtr() = default; + template V> + WeakPtr(V) { } + + template V> + WeakPtr& operator=(V) + { + clear(); + return *this; + } + template WeakPtr(WeakPtr const& other) requires(IsBaseOf)