We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2afc3b4 commit d9dcaa5Copy full SHA for d9dcaa5
1 file changed
src/RecordComponent.cpp
@@ -195,13 +195,14 @@ namespace
195
template <typename T>
196
auto createSpanBufferFallback(size_t size) -> std::shared_ptr<T>
197
{
198
- return std::shared_ptr<T>{new T[size], [](auto *ptr) { delete[] ptr; }};
+ 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[]>
204
- return std::shared_ptr<T[]>{new T[size]};
205
+ return std::unique_ptr<T[]>{new T[size]};
206
207
#endif
208
} // namespace
0 commit comments