From bcd86e532442eb8e9379b59c23c89e879c4b24ed Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Thu, 8 May 2025 23:40:30 -0500 Subject: [PATCH] (clang 15) compiler nit --- include/xo/refcnt/Refcounted.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/xo/refcnt/Refcounted.hpp b/include/xo/refcnt/Refcounted.hpp index 41abf938..bab9f1ba 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*/