@@ -56,12 +56,14 @@ void Record::flush_impl(
5656 {
5757 if (scalar ())
5858 {
59- T_RecordComponent::flush (SCALAR, flushParams);
59+ T_RecordComponent::flush (
60+ SCALAR, flushParams, /* is_scalar = */ true );
6061 }
6162 else
6263 {
6364 for (auto &comp : *this )
64- comp.second .flush (comp.first , flushParams);
65+ comp.second .flush (
66+ comp.first , flushParams, /* is_scalar = */ false );
6567 }
6668 }
6769 else
@@ -71,7 +73,7 @@ void Record::flush_impl(
7173 if (scalar ())
7274 {
7375 RecordComponent &rc = *this ;
74- rc.flush (name, flushParams);
76+ rc.flush (name, flushParams, /* is_scalar = */ true );
7577 }
7678 else
7779 {
@@ -81,7 +83,8 @@ void Record::flush_impl(
8183 for (auto &comp : *this )
8284 {
8385 comp.second .parent () = getWritable (this );
84- comp.second .flush (comp.first , flushParams);
86+ comp.second .flush (
87+ comp.first , flushParams, /* is_scalar = */ false );
8588 }
8689 }
8790 }
@@ -90,12 +93,14 @@ void Record::flush_impl(
9093
9194 if (scalar ())
9295 {
93- T_RecordComponent::flush (name, flushParams);
96+ T_RecordComponent::flush (
97+ name, flushParams, /* is_scalar = */ true );
9498 }
9599 else
96100 {
97101 for (auto &comp : *this )
98- comp.second .flush (comp.first , flushParams);
102+ comp.second .flush (
103+ comp.first , flushParams, /* is_scalar = */ false );
99104 }
100105 }
101106
0 commit comments