[SharedPtr] Poco::makeSharedArray #3200

This commit is contained in:
Aleksandar Fabijanic 2021-02-04 20:28:57 +01:00 committed by GitHub
parent 7380087176
commit 3fbf5d2238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,7 +480,7 @@ SharedPtr<T> makeShared(Args&&... args)
template <typename T>
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]);
}