flatbuffers/samples
Vladimir Glavnyy 7f33cf682a
[C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306)
Prior to this commit the default C++ code generator was `c++0x`.
A code generated with `c++0x` code-gen might have a vulnerability (undefined behavior) connected evolution of enums in a schema. This UB could break the backward compatibility if previously generated code casts an unknown enumerator to enum type that knows nothing about future enumerators added to the schema.

The main differences between `c++0x` and `c++11`:

- generated enums use explicitly declared underlying type;
- generated object-API tables don't declare default ctor() explicitly, instead of it default data member initializers are generated.

Please use `flatc --cpp-std c++0x` option for backward compatibility with old compilers.
2020-12-07 11:19:36 -08:00
..
lua/MyGame/Sample Lua (5.3) Language addition (#4804) 2018-07-05 15:55:57 -07:00
SampleBinary.cs Some code in the samples and docs still used old C# API. 2017-05-22 15:14:46 -07:00
SampleBinary.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
SampleBinary.kt Add basic Kotlin support (#5409) 2019-07-22 16:05:15 -07:00
SampleBinary.php Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
csharp_sample.sh Revert "Convert net/FlatBuffers project to be compatible with netstandard (#4811)" 2018-10-29 17:21:30 -07:00
dart_sample.sh Add [Dart] support (#4676) 2018-05-18 11:06:15 -07:00
go_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
java_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
javascript_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
kotlin_sample.sh Fixed missing generated code. 2019-08-19 17:57:23 -07:00
monster.bfbs Optional-ness in reflection (#6097) 2020-09-11 14:20:32 -07:00
monster.fbs [C++]Sync the sample monster.fbs file with the tutorial (#5277) 2019-04-05 12:34:53 -07:00
monster_generated.h [C++] Switch `flatc` to `--cpp-std c++11` C++ code generator (#6306) 2020-12-07 11:19:36 -08:00
monster_generated.lobster Lobster: added builder API for tables 2019-05-22 19:42:13 -07:00
monster_generated.rs Implement `Debug` trait for Rust flatbuffers. (#6207) 2020-10-29 12:57:29 -07:00
monsterdata.json [docs] typo: updates monsterdata.json to be valid json (#5978) 2020-06-17 22:35:24 -07:00
php_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
python_sample.sh Made .sh files all have same comment formatting. 2016-05-23 14:08:21 -07:00
sample_bfbs.cpp Ran src/clang-format-all.sh (#5617) 2019-11-11 09:29:37 -08:00
sample_binary.cpp Ran src/clang-format-all.sh (#5617) 2019-11-11 09:29:37 -08:00
sample_binary.go Resolve Go fmt and vet warnings (#4134) 2017-01-09 17:13:44 -08:00
sample_binary.lobster Lobster: added builder API for tables 2019-05-22 19:42:13 -07:00
sample_binary.lua Lua (5.3) Language addition (#4804) 2018-07-05 15:55:57 -07:00
sample_binary.py Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
sample_binary.rs Implement `Debug` trait for Rust flatbuffers. (#6207) 2020-10-29 12:57:29 -07:00
sample_binary.swift [Swift] Adds a format file and reformats the swift project (#6250) 2020-11-16 19:52:38 +03:00
sample_flexbuffers.rs Rust Flexbuffers Documentation update (#5979) 2020-06-18 00:01:48 -07:00
sample_flexbuffers_serde.rs Rust Flexbuffers (#5669) 2020-05-07 14:11:26 -07:00
sample_text.cpp Ran src/clang-format-all.sh (#5617) 2019-11-11 09:29:37 -08:00
sample_text.lobster Fixed Lobster implementation to work with latest language features 2019-05-22 11:48:10 -07:00
samplebinary.js Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00