diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 8e618fe80..e20c27599 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -1375,7 +1375,7 @@ CheckedError Parser::StartStruct(const std::string &name, StructDef **dest) { struct_def.file = file_being_parsed_; // Move this struct to the back of the vector just in case it was predeclared, // to preserve declaration order. - *remove(structs_.vec.begin(), structs_.vec.end(), &struct_def) = &struct_def; + *std::remove(structs_.vec.begin(), structs_.vec.end(), &struct_def) = &struct_def; *dest = &struct_def; return NoError(); }