mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 12:43:24 +00:00
Enums in C++ are now strongly typed.
Accessors and constructors now take enum types rather than ints. Bug: 16570507 Change-Id: I4b50fd64ad2e662ea2481bc0ccea784326fb31c0 Tested: on Linux and Windows.
This commit is contained in:
@@ -63,7 +63,7 @@ void lcg_reset() { lcg_seed = 48271; }
|
||||
std::string CreateFlatBufferTest() {
|
||||
flatbuffers::FlatBufferBuilder builder;
|
||||
|
||||
auto vec = Vec3(1, 2, 3, 0, 0, Test(10, 20));
|
||||
auto vec = Vec3(1, 2, 3, 0, Color_Red, Test(10, 20));
|
||||
|
||||
auto name = builder.CreateString("MyMonster");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user