Skip to content

Commit 16200fc

Browse files
committed
Verify that Iterations are not reparsed
1 parent 6537212 commit 16200fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Iteration.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,11 @@ void Iteration::readGorVBased(
480480

481481
void Iteration::read_impl(std::string const &groupPath)
482482
{
483+
if (!get().m_deferredParseAccess.has_value())
484+
{
485+
throw error::Internal(
486+
"Attempted reparsing an Iteration that is already parsed.");
487+
}
483488
Parameter<Operation::OPEN_PATH> pOpen;
484489
pOpen.path = groupPath;
485490
IOHandler()->enqueue(IOTask(this, pOpen));

0 commit comments

Comments
 (0)