diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-15 06:43:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-15 06:43:30 +0200 |
commit | 2d2e0d19cf0fa03ea8c0dc59411205bd4f3cdc7e (patch) | |
tree | 2c50a93d1979fc36ebdebc790a30ae2fd20a12fc | |
parent | 3caa77fcb5057ca40752082da095d7f8ecdcd9ef (diff) |
w
-rw-r--r-- | compat/borrowed-ptr.cpp | 1 | ||||
-rw-r--r-- | compat/borrowed-ptr.inl | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/compat/borrowed-ptr.cpp b/compat/borrowed-ptr.cpp index fc548726..da5c6a72 100644 --- a/compat/borrowed-ptr.cpp +++ b/compat/borrowed-ptr.cpp @@ -15,7 +15,6 @@ namespace floormat::detail_borrowed_ptr { #endif void control_block::decrement(control_block*& blk) noexcept { - fm_bptr_assert(blk); auto c = --blk->_count; fm_bptr_assert(c != (uint32_t)-1); if (c == 0) diff --git a/compat/borrowed-ptr.inl b/compat/borrowed-ptr.inl index 40079377..c81f1ca0 100644 --- a/compat/borrowed-ptr.inl +++ b/compat/borrowed-ptr.inl @@ -143,10 +143,7 @@ bptr<T>::bptr(const bptr<Y>& other, std::nullptr_t) noexcept: blk{other.blk} { if (blk) - { ++blk->_count; - fm_bptr_assert(blk->_count > 1); - } } template<typename T> |