diff --git a/tests/test.cpp b/tests/test.cpp index 06d6a08fa..497f3dd18 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -149,6 +149,9 @@ flatbuffers::DetachedBuffer CreateFlatBufferTest(std::string &buffer) { builder.CreateVectorOfStrings(names4); // Also an accepted type #endif + // Make sure the template deduces an initializer as std::vector + builder.CreateVectorOfStrings({"hello", "world"}); + // Create many vectors of strings std::vector manyNames; for (auto i = 0; i < 100; i++) { manyNames.push_back("john_doe"); }