Skip to content

Commit 2540d26

Browse files
Do not initially emplace any value for the cached Iteration index (#1873)
this avoids subtle bugs followup to #1860
1 parent 3a290ec commit 2540d26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/openPMD/Iteration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ namespace internal
136136
* of the owning map entry instead of a linear scan in
137137
* <code>Series::indexOf()</code>.
138138
*/
139-
std::optional<uint64_t> m_iterationIndex = 0;
139+
std::optional<uint64_t> m_iterationIndex = std::nullopt;
140140

141141
/**
142142
* Information on a parsing request that has not yet been executed.

0 commit comments

Comments
 (0)