mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
[SharedPtr] Poco::makeSharedArray #3200
This commit is contained in:
parent
7380087176
commit
3fbf5d2238
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user