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 13:05:03 -04:00
parent 48294c483f
commit be736e5088
18 changed files with 2047 additions and 48 deletions
@@ -502,6 +502,10 @@ public:
state_.size());
}
T& state() BOOST_SP_NOEXCEPT {
return state_;
}
virtual void dispose() {
sp_array_destroy<E>(state_.allocator(), sp_array_start<type>(this),
state_.size());