Skip to content

Commit 208c381

Browse files
committed
Add missing future return type
1 parent e5e06e5 commit 208c381

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

include/openPMD/LoadStoreChunk.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ namespace core
203203
using ConfigureStoreChunkFromBuffer<
204204
Ptr_Type>::ConfigureStoreChunkFromBuffer;
205205

206-
auto enqueueLoad() -> void;
206+
auto enqueueLoad() -> auxiliary::DeferredComputation<void>;
207207

208208
auto load(EnqueuePolicy) -> void;
209209
};

src/LoadStoreChunk.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ namespace core
237237
}
238238

239239
template <typename Ptr_Type>
240-
auto ConfigureLoadStoreFromBuffer<Ptr_Type>::enqueueLoad() -> void
240+
auto ConfigureLoadStoreFromBuffer<Ptr_Type>::enqueueLoad()
241+
-> auxiliary::DeferredComputation<void>
241242
{
242243
static_assert(
243244
std::is_same_v<
@@ -249,6 +250,10 @@ namespace core
249250
"shared_ptr type.");
250251
this->m_rc.loadChunk_impl(
251252
std::move(this->m_buffer), this->storeChunkConfig());
253+
return auxiliary::DeferredComputation<void>(
254+
[rc_lambda = this->m_rc]() mutable -> void {
255+
rc_lambda.seriesFlush();
256+
});
252257
}
253258

254259
template <typename Ptr_Type>

0 commit comments

Comments
 (0)