diff options
Diffstat (limited to 'compat/borrowed-ptr-cast.hpp')
-rw-r--r-- | compat/borrowed-ptr-cast.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/borrowed-ptr-cast.hpp b/compat/borrowed-ptr-cast.hpp index f202af30..18f0a50e 100644 --- a/compat/borrowed-ptr-cast.hpp +++ b/compat/borrowed-ptr-cast.hpp @@ -22,7 +22,7 @@ bptr<To> static_pointer_cast(const bptr<From>& p) noexcept if constexpr (detail_borrowed_ptr::StaticCastable<From, To>) { if (p.blk && p.blk->_ptr) [[likely]] - return bptr<To>{p, bptr<To>::private_tag}; + return bptr<To>{p, nullptr}; } else { |