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;