mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
fix SharedPtr::makeSharedArray() [merge from devel]
This commit is contained in:
parent
d66acced93
commit
106ba6a020
@ -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