Implement allocate_local_shared for arrays

Also fix the local_shared_ptr constructor to use element_type
This commit is contained in:
Glen Fernandes
2017-06-29 12:46:39 -04:00
parent 48294c483f
commit be736e5088
18 changed files with 2047 additions and 48 deletions

View File

@@ -149,7 +149,7 @@ public:
#endif
// internal constructor, used by make_shared
BOOST_CONSTEXPR local_shared_ptr( boost::detail::lsp_internal_constructor_tag, T * px_, boost::detail::local_counted_base * pn_ ) BOOST_SP_NOEXCEPT : px( px_ ), pn( pn_ )
BOOST_CONSTEXPR local_shared_ptr( boost::detail::lsp_internal_constructor_tag, element_type * px_, boost::detail::local_counted_base * pn_ ) BOOST_SP_NOEXCEPT : px( px_ ), pn( pn_ )
{
}