From 0c45d2b883ab27b960c90c48e6701f1f136c1df1 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 5 Aug 2024 14:28:14 -0400 Subject: [PATCH] xo-refcnt: ns: xo::ref::rp -> xo::rp --- include/xo/refcnt/Refcounted.hpp | 11 ++++++++--- utest/intrusive_ptr.test.cpp | 1 - 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/xo/refcnt/Refcounted.hpp b/include/xo/refcnt/Refcounted.hpp index 33c5b377..a9d4386b 100644 --- a/include/xo/refcnt/Refcounted.hpp +++ b/include/xo/refcnt/Refcounted.hpp @@ -10,6 +10,14 @@ #include namespace xo { + namespace ref { + template + class intrusive_ptr; + } + + template + using rp = ref::intrusive_ptr; + namespace ref { class Refcount; @@ -153,9 +161,6 @@ namespace xo { inline bool operator==(intrusive_ptr const & x, intrusive_ptr const & y) { return intrusive_ptr::compare(x, y) == 0; } - template - using rp = intrusive_ptr; - class Refcount { public: Refcount() : reference_counter_(0) {} diff --git a/utest/intrusive_ptr.test.cpp b/utest/intrusive_ptr.test.cpp index 112268a9..78e3181a 100644 --- a/utest/intrusive_ptr.test.cpp +++ b/utest/intrusive_ptr.test.cpp @@ -9,7 +9,6 @@ namespace xo { using xo::ref::Refcount; using xo::ref::Borrow; - using xo::ref::rp; using xo::ref::brw; using xo::ref::intrusive_ptr_refcount; using xo::ref::intrusive_ptr_add_ref;