Skip to content

Commit 7f242ab

Browse files
committed
Type signature fix
1 parent 5bcc5ee commit 7f242ab

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
@@ -203,14 +203,14 @@ namespace
203203
#if (defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 11000) || \
204204
(defined(__apple_build_version__) && __clang_major__ < 14)
205205
template <typename T>
206-
auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T>
206+
auto createSpanBufferFallback(size_t size) -> UniquePtrWithLambda<T>
207207
{
208208
return UniquePtrWithLambda<T>{
209209
new T[size], [](auto *ptr) { delete[] ptr; }};
210210
}
211211
#else
212212
template <typename T>
213-
auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T[]>
213+
auto createSpanBufferFallback(size_t size) -> std::unique_ptr<T[]>
214214
{
215215
return std::unique_ptr<T[]>{new T[size]};
216216
}

0 commit comments

Comments
 (0)