Skip to content

Commit d8233a5

Browse files
committed
Verify that Iterations are not reparsed
1 parent e90c7b8 commit d8233a5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)