We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 258ef68 commit 492ef59Copy full SHA for 492ef59
src/RecordComponent.cpp
@@ -51,8 +51,10 @@ namespace internal
51
Attributable a;
52
a.setData(std::shared_ptr<AttributableData>{this, [](auto const &) {}});
53
// this check can be too costly in some setups
54
-#if 0
55
- if (a.containingIteration().closed())
+#if 1
+ if ((*a.containingIteration().first.value())
56
+ .asInternalCopyOf<Iteration>()
57
+ .closed())
58
{
59
throw error::WrongAPIUsage(
60
"Cannot write/read chunks to/from closed Iterations.");
0 commit comments