I'm working on a C++14 codebase which uses boost::shared_array. If I understand correctly, scoped_array
and shared_array
are the new[]
-allocated equivalents of scoped_ptr
and shared_ptr
, which themselves are mostly deprecated by the availability of std::unique_ptr
and std::shared_ptr
.
So, can I just use std::shared_ptr<T[]>
instead of boost::shared_array<T>
?