Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jul 22, 2024
1 parent 5efc81c commit b699520
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions include/openPMD/RecordComponent.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ RecordComponent::storeChunk(std::shared_ptr<T> data, Offset o, Extent e)
.offset(std::move(o))
.extent(std::move(e))
.withSharedPtr(std::move(data))
.enqueueStore();
.store(EnqueuePolicy::Defer);
}

template <typename T>
Expand All @@ -237,7 +237,7 @@ RecordComponent::storeChunk(UniquePtrWithLambda<T> data, Offset o, Extent e)
.offset(std::move(o))
.extent(std::move(e))
.withUniquePtr(std::move(data))
.enqueueStore();
.store(EnqueuePolicy::Defer);
}

template <typename T, typename Del>
Expand All @@ -248,7 +248,7 @@ RecordComponent::storeChunk(std::unique_ptr<T, Del> data, Offset o, Extent e)
.offset(std::move(o))
.extent(std::move(e))
.withUniquePtr(std::move(data))
.enqueueStore();
.store(EnqueuePolicy::Defer);
}

template <typename T>
Expand All @@ -258,7 +258,7 @@ void RecordComponent::storeChunkRaw(T *ptr, Offset offset, Extent extent)
.offset(std::move(offset))
.extent(std::move(extent))
.withRawPtr(ptr)
.enqueueStore();
.store(EnqueuePolicy::Defer);
}

template <typename T_ContiguousContainer>
Expand All @@ -278,7 +278,9 @@ RecordComponent::storeChunk(T_ContiguousContainer &data, Offset o, Extent e)
storeChunkConfig.extent(std::move(e));
}

std::move(storeChunkConfig).withContiguousContainer(data).enqueueStore();
std::move(storeChunkConfig)
.withContiguousContainer(data)
.store(EnqueuePolicy::Defer);
}

template <typename T, typename F>
Expand Down

0 comments on commit b699520

Please sign in to comment.