Skip to content

Commit 7a4ed99

Browse files
committed
Explicitly convert to Offset and Extent
1 parent 1a0729f commit 7a4ed99

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,18 @@ namespace detail
11691169
table.reserve( blocksInfo.size() );
11701170
for( auto const & info : blocksInfo )
11711171
{
1172-
table.emplace_back( info.Start, info.Count, info.WriterID );
1172+
Offset offset;
1173+
Extent extent;
1174+
auto size = info.Start.size();
1175+
offset.reserve( size );
1176+
extent.reserve( size );
1177+
for( unsigned i = 0; i < size; ++i )
1178+
{
1179+
offset.push_back( info.Start[ i ] );
1180+
extent.push_back( info.Count[ i ] );
1181+
}
1182+
table.emplace_back(
1183+
std::move( offset ), std::move( extent ), info.WriterID );
11731184
}
11741185
}
11751186

0 commit comments

Comments
 (0)