Skip to content

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

Description

@Lev275568

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions