We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7491a9b commit 45708caCopy full SHA for 45708ca
src/Series.cpp
@@ -1288,9 +1288,16 @@ void Series::flushFileBased(
1288
bool flushIOHandler)
1289
{
1290
auto &series = get();
1291
- if (end == begin)
+ /*
1292
+ * Iterations might have been present, but have been closed and deleted from
1293
+ * internal structures. In this case, previous flushes were successful and
1294
+ * the Series is now in written() state.
1295
+ */
1296
+ if (end == begin && !written())
1297
+ {
1298
throw std::runtime_error(
1299
"fileBased output can not be written with no iterations.");
1300
+ }
1301
1302
switch (IOHandler()->m_frontendAccess)
1303
0 commit comments