Use MakeUnique
to construct objects owned by unique_ptr
s.
Rationale:
MakeUnique
ensures exception safety in complex expressions.MakeUnique
gives a more concise statement of the construction.
Use MakeUnique
to construct objects owned by unique_ptr
s.
Rationale:
MakeUnique
ensures exception safety in complex expressions.MakeUnique
gives a more concise statement of the construction.
Rationale:
* MakeUnique ensures exception safety in complex expressions.
* MakeUnique gives a more concise statement of the construction.
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
std::make_unique
is only available in c++14 so MakeUnique
is a temporary replacement.
Thanks, but this can be changed the next time someone touches the function(s). No need for a separate patch.
Pull requests without a rationale and clear improvement may be closed immediately.
Please provide clear motivation for your patch and explain how it improves Bitcoin Core user experience or Bitcoin Core developer experience significantly.
src/test/
) or
functional tests (see test/
). PR authors should note which tests cover
modified code. If no tests exist for a region of modified code, new tests
should accompany the change.Bitcoin Core has a thorough review process and even the most trivial change needs to pass a lot of eyes and requires non-zero or even substantial time effort to review. There is a huge lack of active reviewers on the project, so patches often sit for a long time.
we don’t have the resources right now to review refactoring of core code
Could we have a tag to distinguish PRs that were closed to due lack of resources from PRs that were closed due to more substantive issues (like brokenness or lack of agreement)? It might be useful to track where we are falling behind, and maybe nice to take edge off rejection for people who submit such PRs, sort of https://en.wikipedia.org/wiki/It%27s_not_you,_it%27s_me
@ryanofsky A closed pull request due to lack of author resources is tagged with “up for grabs”. A closed pull request due to lack of reviewer resources is usually left open until it is reviewed or closed due to a merge conflict and then also tagged with “up for grabs”.
For refactoring pull requests, I don’t see the need to place them “up for grabs”, since the same topics come up frequently every couple of months.