Skip to content

Commit 492ef59

Browse files
committed
Reactivate Iteration::closed() check
seems to fail in some instances
1 parent 258ef68 commit 492ef59

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/RecordComponent.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ namespace internal
5151
Attributable a;
5252
a.setData(std::shared_ptr<AttributableData>{this, [](auto const &) {}});
5353
// this check can be too costly in some setups
54-
#if 0
55-
if (a.containingIteration().closed())
54+
#if 1
55+
if ((*a.containingIteration().first.value())
56+
.asInternalCopyOf<Iteration>()
57+
.closed())
5658
{
5759
throw error::WrongAPIUsage(
5860
"Cannot write/read chunks to/from closed Iterations.");

0 commit comments

Comments
 (0)