In my perf overhaul for MSVC++'s basic_string I wrote the null at data[oldsize] instead of data[newsize]; adding asserts to catch that bug.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
@BillyONeal Changes like this are good for post-commit review (ie just commit it). Adding clearly correct assertions and test cases is never an objectionable thing.
Comment Actions
No problem! Their simplicity also means no likely merge conflicts :)
Sounds good, thanks!