Skip to content
Commit e4273223 authored by Marshall Clow's avatar Marshall Clow
Browse files

Fix an off-by-one error in basic_string::__grow_by, where it would incorrectly...

Fix an off-by-one error in basic_string::__grow_by, where it would incorrectly throw length_error (instead of bad_alloc) when attempting to resize the string to 'max_size()'. Add tests for resizing to max_size +/-1

llvm-svn: 194151
parent 10e316a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment