refactor: Replace all uses of boost::optional with our own Optional type #17316

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2019_10_optional changing 5 files +14 −14
  1. laanwj commented at 1:29 PM on October 30, 2019: member

    Replace all uses of boost::optional with our own Optional type. Luckily, there aren't so many.

    After this:

    • boost::optional is no longer used directly (only through Optional which is an alias for it)
    • boost/optional.hpp is only included in one place
  2. refactor: Replace all uses of boost::optional with our own Optional type
    After this:
    
    - `boost::optional` is no longer used directly (only through `Optional`
        which is an alias for it)
    - `boost/optional.hpp` is only included in one place
    d314e8a818
  3. laanwj added the label Utils/log/libs on Oct 30, 2019
  4. fanquake added this to the "In progress" column in a project

  5. MarcoFalke commented at 1:32 PM on October 30, 2019: member

    ACK d314e8a818d4c162b1c7201533e6b600dcab2d91

  6. MarcoFalke commented at 1:33 PM on October 30, 2019: member

    boost/optional.hpp is only included in one place

    Unfortunately in the header, so it is indirectly included everywhere. Though, I don't think there is a way to not put it in the header.

  7. laanwj commented at 1:45 PM on October 30, 2019: member

    Unfortunately in the header, so it is indirectly included everywhere.

    True. I meant directly. This similar as for the fs abstraction.

    Though, I don't think there is a way to not put it in the header.

    As this is essentially a header-only type, only implementing it ourselves would avoid that. But doing that would be dragging water to the sea with #16684 coming up.

  8. practicalswift commented at 2:07 PM on October 30, 2019: contributor

    ACK d314e8a818d4c162b1c7201533e6b600dcab2d91 -- diff looks correct + satisfying to see incremental progress towards the goal of a Boost free future :)

  9. DrahtBot commented at 5:38 PM on October 30, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #16463 ([BIP 174] Implement serialization support for GLOBAL_XPUB field. by achow101)
    • #16377 ([rpc] don't automatically append inputs in walletcreatefundedpsbt & fundrawtransaction by Sjors)

    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.

  10. jtimon commented at 5:47 PM on October 30, 2019: contributor

    ACK d314e8a818d4c162b1c7201533e6b600dcab2d91 I didn't test, but this seems obviously correct.

  11. fanquake approved
  12. fanquake commented at 6:19 PM on October 30, 2019: member

    ACK d314e8a818d4c162b1c7201533e6b600dcab2d91

  13. fanquake referenced this in commit 08e2947312 on Oct 30, 2019
  14. fanquake merged this on Oct 30, 2019
  15. fanquake closed this on Oct 30, 2019

  16. sidhujag referenced this in commit 39aee4b441 on Oct 31, 2019
  17. jnewbery moved this from the "In progress" to the "Done" column in a project

  18. jasonbcox referenced this in commit dcc5070fc1 on Sep 8, 2020
  19. sidhujag referenced this in commit 80506c08ad on Nov 10, 2020
  20. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

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