-
Notifications
You must be signed in to change notification settings - Fork 902
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
Add move constructors for string_scalar
and struct_scalar
#8428
Add move constructors for string_scalar
and struct_scalar
#8428
Conversation
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.
Why are all the comments reformatted?
I just want to enforce aesthetic consistency for them: some comments ended with a period ( |
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8428 +/- ##
===============================================
Coverage ? 82.95%
===============================================
Files ? 109
Lines ? 18091
Branches ? 0
===============================================
Hits ? 15008
Misses ? 3083
Partials ? 0 Continue to review full report at Codecov.
|
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 think secretly this PR is more about adding periods to the comments. :)
I think this is a good addition, just some doc suggestions.
Please disable this and just use our mandated clang-format settings. Other than automatic line-wrapping to ensure passing clang-format tests, any reformatting of comments should be done manually and not on every file save or it will make PRs harder to review (and cause more conflicts, e.g. with my in-progress scalar.hpp refactor PR) I had a hard time getting to the real changes in this PR. |
string_scalar
and struct_scalar
string_scalar
and struct_scalar
I'm sorry about that. Typically it is disabled, I just accidentally called that this time. |
Rerun tests. |
2 similar comments
Rerun tests. |
Rerun tests. |
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.
LGTM.
(Sorry, I thought I had already approved this PR last week.)
@gpucibot merge |
This PR adds some move constructors for
string_scalar
andstruct_scalar
that accept r-value references to existing buffers. By doing so, the input buffer is moved into the internal buffer of the newly constructed scalars instead of copying.This also cleans up/rewrites doxygens for
scalar.hpp
.Closes #8427.