-
Notifications
You must be signed in to change notification settings - Fork 107
Fix move construction of value from object #54
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
Conversation
test/value.cpp
Outdated
| } | ||
| { | ||
| // verify moved from | ||
| object obj{{"a", 1}, {"a", 1}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not use duplicate keys
test/value.cpp
Outdated
| { | ||
| // verify moved from | ||
| object obj{{"a", 1}, {"a", 1}}; | ||
| BOOST_TEST(obj.capacity()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not depend on conversion to bool. In other words, spell this out: obj.capacity() > 0
test/value.cpp
Outdated
| object obj{{"a", 1}, {"a", 1}}; | ||
| BOOST_TEST(obj.capacity()); | ||
| value jv(std::move(obj), {}); | ||
| BOOST_TEST(!obj.capacity()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would spell this out: obj.capacity() == 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy, will apply.
Codecov Report
@@ Coverage Diff @@
## develop #54 +/- ##
========================================
Coverage 99.09% 99.09%
========================================
Files 57 57
Lines 4854 4855 +1
========================================
+ Hits 4810 4811 +1
Misses 44 44 Continue to review full report at Codecov.
|
d051adb to
f75ecaf
Compare
No description provided.