• Frank Benkstein's avatar
    make flatbuffers::IsFieldPresent safer (#4988) · ca417426
    Frank Benkstein authored
    Give the vtable offset enum inside each table the name
    "FlatBuffersVTableOffset" and base type voffset_t so it can be used as a
    dependent type in IsFieldPresent. This makes that function slightly
    safer since it prevents calling it with arbitrary, non-table types.
    Now, the only way to use IsFieldPresent incorrectly is to create your
    own type which does not inherit from flatbuffers::Table but has a
    dependent voffset convertible type "FlatBuffersVTableOffset".
    ca417426
Name
Last commit
Last update
..
clang-format.sh Loading commit data...
code_generators.cpp Loading commit data...
flatc.cpp Loading commit data...
flatc_main.cpp Loading commit data...
flathash.cpp Loading commit data...
idl_gen_cpp.cpp Loading commit data...
idl_gen_dart.cpp Loading commit data...
idl_gen_fbs.cpp Loading commit data...
idl_gen_general.cpp Loading commit data...
idl_gen_go.cpp Loading commit data...
idl_gen_grpc.cpp Loading commit data...
idl_gen_js.cpp Loading commit data...
idl_gen_json_schema.cpp Loading commit data...
idl_gen_lobster.cpp Loading commit data...
idl_gen_lua.cpp Loading commit data...
idl_gen_php.cpp Loading commit data...
idl_gen_python.cpp Loading commit data...
idl_gen_rust.cpp Loading commit data...
idl_gen_text.cpp Loading commit data...
idl_parser.cpp Loading commit data...
reflection.cpp Loading commit data...
util.cpp Loading commit data...