Avoid need for rcp_managed() call in rcp root class

This commit is contained in:
josh committed 2026-02-23 22:35:57 -05:00
1 parent 83ca3d8893
commit 53b2247432
2 files changed
+4 -4

No files matched your search

+3 -2
View File
@@ -96,7 +96,7 @@ public:
}
};
#define rcp_root() \
#define rcp_root(classname) \
public: \
void rcp_inc() const \
{ \
@@ -110,7 +110,8 @@ public:
} \
} \
private: \
mutable std::atomic<int> ref_count{0}
mutable std::atomic<int> ref_count{0}; \
rcp_managed(classname)
#define rcp_managed(classname) \
public: \