diff --git a/include/xo/refcnt/Refcounted.hpp b/include/xo/refcnt/Refcounted.hpp index 41abf93..bab9f1b 100644 --- a/include/xo/refcnt/Refcounted.hpp +++ b/include/xo/refcnt/Refcounted.hpp @@ -310,6 +310,11 @@ namespace xo { return *this; } + Borrow& operator=(const Borrow& x) { + ptr_ = x.get(); + return *this; + } + private: T * ptr_ = nullptr; }; /*Borrow*/