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
convert make_pair to emplace #10646
convert make_pair to emplace #10646
Conversation
7646388
to
d8649e6
Compare
cool. compiles now. |
72acc54
to
786a839
Compare
Fixed. |
Sorry for forgetting about this PR. Can you rebase to fix the conflicts? |
Rebased. This codebase is a mess. Lots of different styles in use. Maybe clang-format should be looked at. |
We use |
@Habbie just tried it. I assume I should be applying it to this PR? |
'check-formatting - Your tests passed on CircleCI'. You did not break formatting in files we already have formatted, so there's no need for you to do anything here. |
hmm? git clang-format HEAD~1 says otherwise. |
I doubt that reads |
afe664d
to
4ae8418
Compare
emplace* forwards the arguments directly. Avoids needing make_pair. Signed-off-by: Rosen Penev <rosenp@gmail.com>
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.
Reads good. You converted some loops to range loops, but not all. The others can be done some later time,
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.
Looks good, just a tiny indentation issue that we could fix later. I'm also wondering why the change to alter the content in two loops?
emplace* forwards the arguments directly. Avoids needing make_pair.
Signed-off-by: Rosen Penev rosenp@gmail.com
Short description
Checklist
I have: