Skip to content

Commit 6773922

Browse files
committed
Type signature fix
1 parent 43ac83a commit 6773922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RecordComponent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ namespace
193193
#if (defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 11000) || \
194194
(defined(__apple_build_version__) && __clang_major__ < 14)
195195
template <typename T>
196-
auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T>
196+
auto createSpanBufferFallback(size_t size) -> UniquePtrWithLambda<T>
197197
{
198198
return UniquePtrWithLambda<T>{
199199
new T[size], [](auto *ptr) { delete[] ptr; }};
200200
}
201201
#else
202202
template <typename T>
203-
auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T[]>
203+
auto createSpanBufferFallback(size_t size) -> std::unique_ptr<T[]>
204204
{
205205
return std::unique_ptr<T[]>{new T[size]};
206206
}

0 commit comments

Comments
 (0)