flatbuffers
flatbuffers copied to clipboard
idl_parser does not retrieve attribute `deprecated` from binary schema bfbs files[ c++, all]
I wrote a schema file like this:
table Root {
mystring: string;
myint: int(deprecated);
}
root_type Root;
and compiled it with flatc.exe with flags: --binary --schema, got a bfbs file.
When writing my own idl parser based on flatbuffers::Parser
, i found that the value of deprecated
of flatbuffers::FieldDef
is not correctly initialized.
After debugging a little bit, I reached a function named FieldDef::Deserialize
in src/idl_parser.cpp
, it seems that the function does not set the deprecated
field as expected.
Am i correct? thanks for your help.
add two lines, it works for me
This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale
, or this will be closed in 14 days.
This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.