c++ 20 cleanups #94

pull ryanofsky wants to merge 3 commits into bitcoin-core:master from ryanofsky:pr/cl1 changing 3 files +20 −42
  1. ryanofsky commented at 8:09 PM on February 28, 2024: collaborator

    There should be a lot of places where new C++ features can be used to simplify code, particularly concept features in C++20 so I'm starting to go through code and look for places where it can be modernized. Will collect the smaller cleanups in this PR and probably open other PRs with bigger cleanups.

  2. ryanofsky force-pushed on Feb 28, 2024
  3. ryanofsky referenced this in commit 53ee9faf84 on Jun 13, 2024
  4. proxy-types Drop JoinPromises function
    Also add comments to explain code using it the PassField proxy.capnp Context
    overload
    c92e90ce08
  5. util: Get rid of unused Discard struct 1f76880dbf
  6. refactor, moveonly: order lambda move captures first
    Followup for https://github.com/chaincodelabs/libmultiprocess/pull/88
    6cbe56ef3b
  7. ryanofsky force-pushed on Jun 13, 2024
  8. fanquake commented at 3:12 PM on January 27, 2025: member

    Maybe also time to revive these changes?

  9. ryanofsky commented at 3:29 PM on January 27, 2025: collaborator

    Added 1 commits 1f76880dbfca780a7ebdeaee9be4e532291c8245 -> 6cbe56ef3b38129314960eadc0824393fec089d9 (pr/cl1.4 -> pr/cl1.5, compare) adding a new commit to make lambda capture order a little more consistent.

    There is more work that could be done here, but I'm about to merge this PR to clear backlog of libmultiprocess changes before bumping the version in bitcoin.

    re: https://github.com/chaincodelabs/libmultiprocess/pull/94#issuecomment-2616027177

    Maybe also time to revive these changes?

    Yes, there is definitely more work that could be done to modernize the code, which was originally written using c++11. Should be able to happen in separate followups though.

  10. ryanofsky merged this on Jan 27, 2025
  11. ryanofsky closed this on Jan 27, 2025

  12. ryanofsky referenced this in commit 90b116bd70 on Jan 27, 2025
  13. ryanofsky referenced this in commit 2221c8814d on Jan 27, 2025
  14. Sjors referenced this in commit b66fe2fc03 on Jan 28, 2025
  15. fanquake referenced this in commit ad2f9324c6 on Jan 29, 2025
  16. janus referenced this in commit 311822f35f on Sep 1, 2025
  17. bitcoin-core locked this on Jan 27, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 18:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me