• Frank Benkstein's avatar
    don't use std::function in flatbuffers::Parser (#4995) · a3d8391f
    Frank Benkstein authored
    std::function makes code harder to debug because it requires stepping
    through a separate destructor and call operator.  It's use unnecessary
    in the Parser since the functions taking functors are private and are
    only used within idl_parser.cpp.  Therefore the definitions can stay in
    idl_parser.cpp as well.  Only care must be taken that the definitions
    appear before use but that's already true and all compilers will
    complain equally if it get's violated.  This change might also improve
    performance since it might allow inlining where it wasn't possible
    before but I haven't measured that.
    a3d8391f
Name
Last commit
Last update
.github Loading commit data...
.travis Loading commit data...
CMake Loading commit data...
android Loading commit data...
conan Loading commit data...
dart Loading commit data...
docs Loading commit data...
go Loading commit data...
grpc Loading commit data...
include/flatbuffers Loading commit data...
java/com/google/flatbuffers Loading commit data...
js Loading commit data...
lobster Loading commit data...
lua Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
rust/flatbuffers Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
BUILD Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
WORKSPACE Loading commit data...
appveyor.yml Loading commit data...
composer.json Loading commit data...
conanfile.py Loading commit data...
package.json Loading commit data...
pom.xml Loading commit data...
readme.md Loading commit data...