diff --git a/include/flatbuffers/minireflect.h b/include/flatbuffers/minireflect.h index 26fd86c96..22f43fbab 100644 --- a/include/flatbuffers/minireflect.h +++ b/include/flatbuffers/minireflect.h @@ -407,8 +407,9 @@ struct ToStringVisitor : public IterationVisitor { inline std::string FlatBufferToString(const uint8_t *buffer, const TypeTable *type_table, bool multi_line = false, - bool vector_delimited = true) { - ToStringVisitor tostring_visitor(multi_line ? "\n" : " ", false, "", + bool vector_delimited = true, + const std::string& indent = "") { + ToStringVisitor tostring_visitor(multi_line ? "\n" : " ", false, indent, vector_delimited); IterateFlatBuffer(buffer, type_table, &tostring_visitor); return tostring_visitor.s;