-
Notifications
You must be signed in to change notification settings - Fork 107
Fix object strong guarantee #907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix object strong guarantee #907
Conversation
|
There is no requirement that capacity is restored to the previous value on an exception.. it is ok to increase capacity and then later fail the insertion - and the object is returned to the caller with the increased capacity. |
|
If new storage is allocated, then iterators are invalidated and thus, the function doesn't provide the strong guarantee. |
|
It's not too hard to revert storage change in our case, so I don't see why we shouldn't. Strong guarantee is a good property. |
|
|
0fa18a7 to
8f3eb00
Compare
|
|
8f3eb00 to
8957955
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #907 +/- ##
========================================
Coverage 92.98% 92.98%
========================================
Files 85 85
Lines 8056 8058 +2
========================================
+ Hits 7491 7493 +2
Misses 565 565
Continue to review full report in Codecov by Sentry.
|
|
|



Fix #763