fix SharedPtr::makeSharedArray() [merge from devel]

This commit is contained in:
Günter Obiltschnig 2021-06-23 08:34:33 +02:00
parent d66acced93
commit 106ba6a020

View File

@ -480,7 +480,7 @@ SharedPtr<T> makeShared(Args&&... args)
template <typename T> template <typename T>
SharedPtr<T, ReferenceCounter, ReleaseArrayPolicy<T>> makeSharedArray(std::size_t size) SharedPtr<T, ReferenceCounter, ReleaseArrayPolicy<T>> makeSharedArray(std::size_t size)
{ {
return new SharedPtr<T, ReferenceCounter, ReleaseArrayPolicy<T>>(new T[size]); return SharedPtr<T, ReferenceCounter, ReleaseArrayPolicy<T>>(new T[size]);
} }