diff --git a/ctl/shared_ptr.h b/ctl/shared_ptr.h index df3865377..c387f2198 100644 --- a/ctl/shared_ptr.h +++ b/ctl/shared_ptr.h @@ -349,7 +349,7 @@ class shared_ptr template bool owner_before(const weak_ptr& r) const noexcept { - return !r.owner_before(*this); + return rc < r.rc; } private: