Т.е. задан следующий файл схемы:
Код: Выделить всё
enum Month : short
{
January,
February,
March,
}
table SpecificMonths
{
Months:[Month];
}
root_type SpecificMonths;
Код: Выделить всё
flatbuffers::FlatBufferBuilder builder;
Month months[] = {Month_January, Month_March};
auto monthsVector = builder.CreateVector(months, 2);
auto specificMonths = CreateSpecificMonths(builder, monthsVector);
Код: Выделить всё
error C2664: 'flatbuffers::Offset CreateSpecificMonths(flatbuffers::FlatBufferBuilder &,flatbuffers::Offset)': cannot convert argument 2 from 'flatbuffers::Offset' to 'flatbuffers::Offset'
note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Подробнее здесь: https://stackoverflow.com/questions/536 ... r-of-enums