aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/include/kstd/bits/observer_ptr.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/kstd/include/kstd/bits/observer_ptr.hpp b/libs/kstd/include/kstd/bits/observer_ptr.hpp
index 43ea409..1c5da15 100644
--- a/libs/kstd/include/kstd/bits/observer_ptr.hpp
+++ b/libs/kstd/include/kstd/bits/observer_ptr.hpp
@@ -44,6 +44,12 @@ namespace kstd
//! Move construct an observer pointer.
constexpr observer_ptr(observer_ptr && other) noexcept = default;
+ //! Copy assign an observer pointer.
+ constexpr auto operator=(observer_ptr const & other) noexcept -> observer_ptr & = default;
+
+ //! Move assign an observer pointer.
+ constexpr auto operator=(observer_ptr && other) noexcept -> observer_ptr & = default;
+
//! Stop watching the the watched object.
//!
//! @return The currently watched object, or nullptr if no object is being watched.