summaryrefslogtreecommitdiffhomepage
path: root/compat/borrowed-ptr.inl
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-04 12:59:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:31:18 +0200
commit5798acdb8cad0c8af2bf5fdb387234a5932ec17d (patch)
tree002c11a7dec874d9e576bcd27825816c5bdf7f93 /compat/borrowed-ptr.inl
parent4c276b1b1b946e4b08eb7b92a24d30bdc55106fd (diff)
wip bptr
Diffstat (limited to 'compat/borrowed-ptr.inl')
-rw-r--r--compat/borrowed-ptr.inl2
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();