@@ -820,13 +820,13 @@ template <typename T>
820820void RecordComponent::storeChunk (std::shared_ptr<T[]> data, Offset o, Extent e)
821821{
822822 storeChunk (
823- std::static_pointer_cast<T>(std::move (data)),
823+ std::static_pointer_cast<T const >(std::move (data)),
824824 std::move (o),
825825 std::move (e));
826826}
827827
828828template <typename T>
829- void RecordComponent::storeChunkRaw (T *ptr, Offset offset, Extent extent)
829+ void RecordComponent::storeChunkRaw (T const *ptr, Offset offset, Extent extent)
830830{
831831 storeChunk (auxiliary::shareRaw (ptr), std::move (offset), std::move (extent));
832832}
@@ -864,15 +864,15 @@ void RecordComponent::verifyChunk(Offset const &o, Extent const &e) const
864864 template void RecordComponent::verifyChunk<type>( \
865865 Offset const &o, Extent const &e) const ; \
866866 template DynamicMemoryView<type> RecordComponent::storeChunk<type>( \
867- Offset offset, Extent extent);
867+ Offset offset, Extent extent); \
868+ template void RecordComponent::storeChunkRaw<type>( \
869+ OPENPMD_PTR (type const ) ptr, Offset offset, Extent extent);
868870
869871#define OPENPMD_INSTANTIATE_CONST_AND_NONCONST (type ) \
870872 template void RecordComponent::storeChunk<type>( \
871873 std::shared_ptr<type> data, Offset o, Extent e); \
872874 template void RecordComponent::storeChunk<type>( \
873- std::shared_ptr<OPENPMD_ARRAY(type)> data, Offset o, Extent e); \
874- template void RecordComponent::storeChunkRaw<type>( \
875- OPENPMD_PTR (type) ptr, Offset offset, Extent extent);
875+ std::shared_ptr<OPENPMD_ARRAY(type)> data, Offset o, Extent e);
876876
877877#define OPENPMD_INSTANTIATE_WITH_AND_WITHOUT_EXTENT (type ) \
878878 template std::shared_ptr<type> RecordComponent::loadChunk<type>( \
0 commit comments