• Vladimir Glavnyy's avatar
    Add `NaN` and `Inf` defaults to the C++ generated code. (#5102) · dd288f71
    Vladimir Glavnyy authored
    * Add `NaN` and `Inf` defaults to the C++ generated code.
    
    * Refactoring: add FloatConstantGenerator
    
    * Refactoring-2:
    
    - remove isnan checking for all float/double values
    - add most probable implementation of virtual methods of FloatConstantGenerator
    
    * Add conditional (FLATBUFFERS_NAN_DEFAULTS) isnan checking
    dd288f71
test.cpp 99.9 KB