@@ -50,12 +50,14 @@ void Record::flush_impl(
5050 {
5151 if (scalar ())
5252 {
53- T_RecordComponent::flush (SCALAR, flushParams);
53+ T_RecordComponent::flush (
54+ SCALAR, flushParams, /* is_scalar = */ true );
5455 }
5556 else
5657 {
5758 for (auto &comp : *this )
58- comp.second .flush (comp.first , flushParams);
59+ comp.second .flush (
60+ comp.first , flushParams, /* is_scalar = */ false );
5961 }
6062 }
6163 else
@@ -65,7 +67,7 @@ void Record::flush_impl(
6567 if (scalar ())
6668 {
6769 RecordComponent &rc = *this ;
68- rc.flush (name, flushParams);
70+ rc.flush (name, flushParams, /* is_scalar = */ true );
6971 }
7072 else
7173 {
@@ -75,7 +77,8 @@ void Record::flush_impl(
7577 for (auto &comp : *this )
7678 {
7779 comp.second .parent () = getWritable (this );
78- comp.second .flush (comp.first , flushParams);
80+ comp.second .flush (
81+ comp.first , flushParams, /* is_scalar = */ false );
7982 }
8083 }
8184 }
@@ -84,12 +87,14 @@ void Record::flush_impl(
8487
8588 if (scalar ())
8689 {
87- T_RecordComponent::flush (name, flushParams);
90+ T_RecordComponent::flush (
91+ name, flushParams, /* is_scalar = */ true );
8892 }
8993 else
9094 {
9195 for (auto &comp : *this )
92- comp.second .flush (comp.first , flushParams);
96+ comp.second .flush (
97+ comp.first , flushParams, /* is_scalar = */ false );
9398 }
9499 }
95100
0 commit comments