mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 13:53:38 +00:00
Fixes for Windows compiler errors.
Change-Id: I909ea6866089f36f9cb79d435bbecd29623fd8f7
This commit is contained in:
@@ -1372,9 +1372,9 @@ void FlexBuffersTest() {
|
||||
slb += "Fred";
|
||||
slb.IndirectFloat(4.0f);
|
||||
});
|
||||
std::vector<int> ints = { 1, 2, 3 };
|
||||
int ints[] = { 1, 2, 3 };
|
||||
slb.Add("bar", ints);
|
||||
slb.FixedTypedVector("bar3", ints.data(), ints.size()); // Static size.
|
||||
slb.FixedTypedVector("bar3", ints, sizeof(ints) / sizeof(int));
|
||||
slb.Double("foo", 100);
|
||||
slb.Map("mymap", [&]() {
|
||||
slb.String("foo", "Fred"); // Testing key and string reuse.
|
||||
|
||||
Reference in New Issue
Block a user