Specify `std' namespace for remove function (#4268)

This commit is contained in:
Dmitry Ermolov
2017-04-20 02:55:41 +03:00
committed by Wouter van Oortmerssen
parent 33932ceea4
commit 370693a200

View File

@@ -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();
}