mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 00:27:31 +00:00
Add support of Optional<T> scalars to C++ code generator (#6092)
This commit is contained in:
@@ -847,6 +847,11 @@ class Parser : public ParserState {
|
||||
|
||||
FLATBUFFERS_CHECKED_ERROR Error(const std::string &msg);
|
||||
|
||||
// @brief Verify that any of 'opts.lang_to_generate' supports Optional scalars
|
||||
// in a schema.
|
||||
// @param opts Options used to parce a schema and generate code.
|
||||
static bool SupportsOptionalScalars(const flatbuffers::IDLOptions &opts);
|
||||
|
||||
private:
|
||||
void Message(const std::string &msg);
|
||||
void Warning(const std::string &msg);
|
||||
|
||||
Reference in New Issue
Block a user