diff --git a/src/bin/eolian_mono/eolian/mono/struct_fields.hh b/src/bin/eolian_mono/eolian/mono/struct_fields.hh index 7756d7bded..b8bb0a231b 100644 --- a/src/bin/eolian_mono/eolian/mono/struct_fields.hh +++ b/src/bin/eolian_mono/eolian/mono/struct_fields.hh @@ -45,8 +45,9 @@ struct field_argument_assignment_generator template bool generate(OutputIterator sink, attributes::struct_field_def const& field, Context const& context) const { - if (!as_generator("this." << string << " = " << string) - .generate(sink, std::make_tuple(name_helpers::to_field_name(field.name), name_helpers::to_field_name(field.name)), context)) + auto field_name = name_helpers::to_field_name(field.name); + if (!as_generator("this." << field_name << " = " << field_name) + .generate(sink, attributes::unused, context)) return false; return true; }