Merge pull request #9144 from appledragon/master
for windows build fail issue, confliction with std max
This commit is contained in:
commit
d630f96dce
@ -57,7 +57,7 @@ inline void STLStringResizeUninitializedAmortized(std::string* s,
|
||||
const size_t cap = s->capacity();
|
||||
if (new_size > cap) {
|
||||
// Make sure to always grow by at least a factor of 2x.
|
||||
s->reserve(std::max(new_size, 2 * cap));
|
||||
s->reserve(std::max<size_t>(new_size, 2 * cap));
|
||||
}
|
||||
STLStringResizeUninitialized(s, new_size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user