• Alexey Geraskin's avatar
    [C++] remove static_cast expression (#5440) · 2d5315ff
    Alexey Geraskin authored
    * [C++] remove static_cast expression
    
    * [C++] Add unit test for native_type usage
    
    * [C++] Add flatc compilation for native_type_test.fbs
    
    * [C++] update CMakeLists to compile native_type_test.fbs properly
    
    * Update BUILD file for bazel
    
    * [C++] Add generated native_type_test_generated.h and fix arguments for flatc according to CMakeList
    
    * [C++] remove "= default" from constructor to support old compilers
    
    * Update BUILD file for bazel, attempt 2
    
    * [C++] Workaround for MSVC 2010 for the issue with std::vector and explicitly aligned custom data types
    
    * Update BUILD file for bazel, attempt 3
    
    * Update BUILD file for bazel, attempt 4
    
    * Update BUILD file for bazel, attempt 5
    
    * Update BUILD file for bazel, attempt 6
    
    * [C++] Workaround for MSVC 2010 for the issue with std::vector and explicitly aligned custom data types Part 2
    
    * [C++] Keep only one optional parameter to compile_flatbuffers_schema_to_cpp_opt
    
    * native_type_test.fbs style corrected
    
    * [C++] Code style modifications
    
    * [C++] Fix flatc arguments in CMakeLists
    
    * [C++] Remove --gen-compare from default parameters for flatc in CMakeLists
    
    * [C++] Change Vector3D fields from double to float, to have alignment eq. 4 (to support MSVC 2010), plus minor review fix
    
    * [C++] Remove one more #if !defined
    
    * [C++] Restore version with correct static_cast, add the same fix for SortedStructs
    
    * Revert "[C++] Restore version with correct static_cast, add the same fix for SortedStructs"
    
    This reverts commit d61f4d6628cfce530c8b9a4c9e7af368d599f99f.
    
    * [C++] Fix Android.mk
    2d5315ff