Skip to content

Commit

Permalink
Add missing future return type
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Nov 15, 2024
1 parent 5bb8a26 commit e51e635
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/openPMD/LoadStoreChunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace core
using ConfigureStoreChunkFromBuffer<
Ptr_Type>::ConfigureStoreChunkFromBuffer;

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

auto load(EnqueuePolicy) -> void;
};
Expand Down
7 changes: 6 additions & 1 deletion src/LoadStoreChunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ namespace core
}

template <typename Ptr_Type>
auto ConfigureLoadStoreFromBuffer<Ptr_Type>::enqueueLoad() -> void
auto ConfigureLoadStoreFromBuffer<Ptr_Type>::enqueueLoad()
-> auxiliary::DeferredComputation<void>
{
static_assert(
std::is_same_v<
Expand All @@ -249,6 +250,10 @@ namespace core
"shared_ptr type.");
this->m_rc.loadChunk_impl(
std::move(this->m_buffer), this->storeChunkConfig());
return auxiliary::DeferredComputation<void>(
[rc_lambda = this->m_rc]() mutable -> void {
rc_lambda.seriesFlush();
});
}

template <typename Ptr_Type>
Expand Down

0 comments on commit e51e635

Please sign in to comment.