Repository navigation
Use std::move and std::unique_ptr directly in detail/adjacency_list.hpp - #642
Conversation
|
Boost dependency footprint vs Header-inclusion weights (graph files pulling each direct dependency in): No header-inclusion-weight changes. Transitive Boost modules: 47 → 47 (0) |
|
Compiler-warning counts vs
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
Becheler
left a comment
There was a problem hiding this comment.
@varunsha30 thank you !
Same remark as the previous PR, please do not reformat the file, as it blows up the diff 😄
Otherwise great work thanks again !
Change of mind sorry, this is the most included header in the library and I don't think it's reasonable to include reformating in the PR. Also one important comment disappeared.
There was a problem hiding this comment.
@varunsha30 thank you for your changes !
This header is the most central piece of code in the library, and I would like to have minimal PRs touching it. Currently most of the git diff comes from clang-format. There is also one important comment that disappeared. Would you be so kind to remove the format changes, reinstate the comment and resubmit ?
Thank you very much 🙏🏽
Let us know if the instruction "Do not run clang-format. We will soon make a repo-wide formatting PR and integrate clang-format in CI." instruction was not clear in #593 . I will probably move it up so it's more obvious/less burried 🤗
32bcea8 to
16540a2
Compare
|
Hi @Becheler, thank you for pointing out the formatting issues. I have resolved them. VSCode's default behaviour runs clang-format automatically on the codebase. I did not mess with it previously, but now I have disabled it. |
…ompatibility paths for older compilers.
16540a2 to
1af8f29
Compare
|
@varunsha30 thank you very much ! |
Becheler
left a comment
There was a problem hiding this comment.
Thank you @varunsha30 for your changes and hard work 🙏🏽
std::move and std::unique_ptr directly.std::move and std::unique_ptr directly in adjacency_list
std::move and std::unique_ptr directly in adjacency_liststd::move and std::unique_ptr directly in detail/adjacency_list.hpp
Important
New algorithms and API additions need a design issue first. Such a PR is not reviewed until an issue has settled the API and frozen the scope. PRs whose scope grows under review go stale. See How To Contribute an Algorithm.
Motivation
Part of #593
What this PR does
Use
std::moveandstd::unique_ptrdirectly instead of retaining compatibility paths for older compilers.Before submitting
developbranch.Kind of change
Tick exactly one. Each kind is reviewed differently, so mixing them in one PR makes the diff difficult to review (why).
Change category