We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ac83a commit 6773922Copy full SHA for 6773922
src/RecordComponent.cpp
@@ -193,14 +193,14 @@ namespace
193
#if (defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 11000) || \
194
(defined(__apple_build_version__) && __clang_major__ < 14)
195
template <typename T>
196
- auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T>
+ auto createSpanBufferFallback(size_t size) -> UniquePtrWithLambda<T>
197
{
198
return UniquePtrWithLambda<T>{
199
new T[size], [](auto *ptr) { delete[] ptr; }};
200
}
201
#else
202
203
- auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T[]>
+ auto createSpanBufferFallback(size_t size) -> std::unique_ptr<T[]>
204
205
return std::unique_ptr<T[]>{new T[size]};
206
0 commit comments