You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the generated T suffix Native Table types for the C++ Object API derive from flatbuffers::NativeTable. There is no use-case for this that I can discern in the generated code, and the comment next to this empty class states
// Contains no functionality, purely documentative.
struct NativeTable {};
The existence of this base class means that the native table types cannot be brace-initialised without adding an additional {} at the start of the brace-initialiser list - and even that's only true since C++17.
Perhaps this empty base class could be removed, as it contains no functionality and hinders some use-cases? Since no constructor is provided for the NativeTable types, brace-initialisation is the only inline construction option for these classes.
The text was updated successfully, but these errors were encountered:
All the generated
T
suffix Native Table types for the C++ Object API derive fromflatbuffers::NativeTable
. There is no use-case for this that I can discern in the generated code, and the comment next to this empty class statesThe existence of this base class means that the native table types cannot be brace-initialised without adding an additional
{}
at the start of the brace-initialiser list - and even that's only true since C++17.Perhaps this empty base class could be removed, as it contains no functionality and hinders some use-cases? Since no constructor is provided for the NativeTable types, brace-initialisation is the only inline construction option for these classes.
The text was updated successfully, but these errors were encountered: