From bacf3d17645e4f79496d42069d9e96bb7ac76497 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 May 2024 21:25:54 +0200 Subject: add iptr todo --- compat/intrusive-ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compat/intrusive-ptr.hpp') diff --git a/compat/intrusive-ptr.hpp b/compat/intrusive-ptr.hpp index a997192b..b5cf0d53 100644 --- a/compat/intrusive-ptr.hpp +++ b/compat/intrusive-ptr.hpp @@ -54,7 +54,7 @@ struct refcount_access using counter_type = refcount_traits::counter_type; refcount_access() = delete; - static constexpr auto access(T* ptr) noexcept -> counter_type&; + static constexpr auto access(T* ptr) noexcept -> counter_type&; // todo this should return the iptr's control block. it has to contain the original pointer (because the casted ptr (or its base class, when casted to iptr) might not have a virtual dtor), shared count, and (shared+weak) count. template static constexpr Y* checked_cast(const T* ptr) noexcept; // todo }; @@ -168,7 +168,7 @@ class basic_iptr final using ops_t = ::floormat::iptr::refcount_ops; static_assert(::floormat::iptr::check_traits()); - T* _ptr{nullptr}; + T* _ptr{nullptr}; // todo control block // todo use std::construct_at as it has a constexpr exception. // ...but it requires :( — maybe use an ifdef? -- cgit v1.2.3