When running the zerodds-idlc binary with cpp backend, if the input IDL file contains the keyword class as member of a struct, the compiler raise the error zerodds-idlc: cpp codegen failed: invalid identifier 'class': reserved C++ keyword.
For example, with a file named character.idl:
enum CharacterClass {
WARRIOR,
MAGE,
ARCHER
};
struct Character {
int8 health;
CharacterClass class; // Here 'class' member as reserved C++ keyword
};
Running with:
zerodds-idlc generate ./character.idl --cpp --output ./
When running the
zerodds-idlcbinary withcppbackend, if the input IDL file contains the keywordclassas member of a struct, the compiler raise the errorzerodds-idlc: cpp codegen failed: invalid identifier 'class': reserved C++ keyword.For example, with a file named character.idl:
enum CharacterClass { WARRIOR, MAGE, ARCHER }; struct Character { int8 health; CharacterClass class; // Here 'class' member as reserved C++ keyword };Running with: