summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorThomas <maierbacher@gmail.com>2018-09-22 01:53:59 +0200
committerWouter van Oortmerssen <aardappel@gmail.com>2018-09-21 16:53:59 -0700
commit33791dc7b0fcfa31781875753dcd716e50d41283 (patch)
treeb4611ab048e51335fdf37a44d7da7e97495fbba9 /docs
parent873a60b0d877822f8ac7258b69910a30a289ad70 (diff)
downloadflatbuffers-33791dc7b0fcfa31781875753dcd716e50d41283.tar.gz
flatbuffers-33791dc7b0fcfa31781875753dcd716e50d41283.tar.bz2
flatbuffers-33791dc7b0fcfa31781875753dcd716e50d41283.zip
Add compare operator to code generated for c++ (#4940)
* Add operator== for c++ genated code New "--gen-compare" option for flatc to generate compare operators. The operators are defined based on object based api types. Inspired by issue #263. * Improve compare operator for c++. Thanks for the code review. - Improve robustness against future schema extensions - Code style - Fix --rust generation in generate_code.sh
Diffstat (limited to 'docs')
-rw-r--r--docs/source/Compiler.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/source/Compiler.md b/docs/source/Compiler.md
index 586087ad..18eafd4a 100644
--- a/docs/source/Compiler.md
+++ b/docs/source/Compiler.md
@@ -96,6 +96,8 @@ Additional options:
at the cost of efficiency (object allocation). Recommended only to be used
if other options are insufficient.
+- `--gen-compare` : Generate operator== for object-based API types.
+
- `--gen-onefile` : Generate single output file (useful for C#)
- `--gen-all`: Generate not just code for the current schema files, but