diff options
Diffstat (limited to 'compat/borrowed-ptr.inl')
-rw-r--r-- | compat/borrowed-ptr.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/borrowed-ptr.inl b/compat/borrowed-ptr.inl index 1d0ac7b6..7302c857 100644 --- a/compat/borrowed-ptr.inl +++ b/compat/borrowed-ptr.inl @@ -141,7 +141,7 @@ bptr<T>& bptr<T>::operator=(bptr<Y>&& other) noexcept template<typename T, typename U> bptr<T> static_pointer_cast(const bptr<U>& p) { - auto ret = bptr<T>{}; + auto ret = bptr<T>{NoInit}; ret.blk = p.blk; if (ret.blk) [[likely]] ret.blk->incr(); |