boostorg / boostorg/smart_ptr

local_shared_ptr have no assertions checks if operators "->" or "*" are called

Open
#123 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
111
Forks
116
PR merge metrics
No merged PRs in 30d

Description

local_shared_ptr:
```
typename boost::detail::sp_dereference< T >::type operator* () const noexcept
{
return *px;
}

typename boost::detail::sp_member_access< T >::type operator-> () const noexcept
{
return px;
}
```

shared_ptr have `BOOST_ASSERT( px != 0 );` before return.

I think it will be useful.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.