fix: fix handle class

Fix handle class for headers without reference counting.
This commit is contained in:
2026-07-03 18:27:21 +02:00
parent 6ec4710eaa
commit 11b05b8c18
+2 -2
View File
@@ -180,8 +180,8 @@ public:
*
* @return The reference count.
*/
template <typename ReferenceCount = typename Header::refcount_type>
ReferenceCount reference_count() const {
template <typename U = Header, typename = std::enable_if_t<detail::header_has_refcount_v<U>>>
auto reference_count() const {
return m_value->first.reference_count();
}