forked from boostorg/smart_ptr
Add lsp_array_* tests
This commit is contained in:
1 parent
585de501da
commit
4dda1b5fbb
7 files changed
+892
No files matched your search
@@ -57,6 +57,8 @@ public:
|
||||
|
||||
virtual void destroy() BOOST_SP_NOEXCEPT = 0;
|
||||
|
||||
virtual boost::shared_ptr<void> get_shared_ptr() const BOOST_SP_NOEXCEPT = 0;
|
||||
|
||||
void add_ref() BOOST_SP_NOEXCEPT
|
||||
{
|
||||
#if defined( __has_builtin )
|
||||
@@ -114,6 +116,11 @@ public:
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
virtual boost::shared_ptr<void> get_shared_ptr() const BOOST_SP_NOEXCEPT
|
||||
{
|
||||
return const_pointer_cast<void>( pn_ );
|
||||
}
|
||||
};
|
||||
|
||||
class local_counted_impl_em: public local_counted_base
|
||||
@@ -126,6 +133,11 @@ public:
|
||||
{
|
||||
pn_.reset();
|
||||
}
|
||||
|
||||
virtual boost::shared_ptr<void> get_shared_ptr() const BOOST_SP_NOEXCEPT
|
||||
{
|
||||
return const_pointer_cast<void>( pn_ );
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
|
||||
Reference in new issue
Block a user