This will allow the code to be compiled with -Wfloat-equal
vendor/flatbuffers/include/flatbuffers/base.h:465:69:
error: comparing floating point with == or != is unsafe [-Werror,-Wfloat-equal]
template<typename T> inline bool IsTheSameAs(T e, T def) { return e == def; }
Im not 100% happy because it will still break when FLATBUFFERS_NAN_DEFAULTS is defined.
This will allow the code to be compiled with
-Wfloat-equal
Im not 100% happy because it will still break when
FLATBUFFERS_NAN_DEFAULTS
is defined.