Add lsp_array_* tests

This commit is contained in:
Peter Dimov committed 2017-06-13 18:03:01 +03:00
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