forked from boostorg/smart_ptr
Implement allocate_local_shared for arrays
Also fix the local_shared_ptr constructor to use element_type
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user