Commit 8e42f448 authored by Vitaly Bondar's avatar Vitaly Bondar Committed by Wouter van Oortmerssen

Fix of namespace problem described in #4747 (#4752)

parent 88912640
......@@ -2047,7 +2047,7 @@ class CppGenerator : public BaseGenerator {
auto cpp_type = field.attributes.Lookup("cpp_type");
std::string indexing;
if (field.value.type.enum_def) {
indexing += "(" + field.value.type.enum_def->name + ")";
indexing += "(" + WrapInNameSpace(*field.value.type.enum_def) + ")";
}
indexing += "_e->Get(_i)";
if (field.value.type.element == BASE_TYPE_BOOL) { indexing += " != 0"; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment