Refactor: Removed begin/end_ptr functions. #9305

pull kallewoof wants to merge 1 commits into bitcoin:master from kallewoof:remove-begin-end_ptr-usage changing 11 files +32 −61
  1. kallewoof commented at 4:22 AM on December 9, 2016: member

    serialize.h has a number of functions for accessing the data inside std::vectors, prepended with a warning to not use them in new code, as "with C++11 the language has built-in functionality for this and it's more readable to just use that". This PR removes these functions and their uses.

    • begin_ptr(X)X.data()
    • end_ptr(X)(X.data() + X.size())
  2. Refactor: Removed begin/end_ptr functions. 8c1dbc5e9d
  3. sipa commented at 4:23 AM on December 9, 2016: member

    Concept ACK

  4. fanquake added the label Refactoring on Dec 9, 2016
  5. dcousens approved
  6. dcousens commented at 5:26 AM on December 9, 2016: contributor

    yay, utACK / concept ACK

  7. paveljanik commented at 7:05 AM on December 9, 2016: contributor

    ACK 8c1dbc5

  8. jonasschnelli approved
  9. jonasschnelli commented at 7:37 AM on December 9, 2016: contributor

    utACK 8c1dbc5e9ddbafb77e60e8c4e6eb275a3a76ac12

  10. laanwj commented at 12:44 PM on December 9, 2016: member

    I was about to mention the developer notes, but they're already gone from there.

    utACK https://github.com/bitcoin/bitcoin/pull/9305/commits/8c1dbc5e9ddbafb77e60e8c4e6eb275a3a76ac12

  11. laanwj merged this on Dec 13, 2016
  12. laanwj closed this on Dec 13, 2016

  13. laanwj referenced this in commit 5233aefa3f on Dec 13, 2016
  14. kallewoof deleted the branch on Dec 13, 2016
  15. codablock referenced this in commit 6d6d0e34d7 on Jan 16, 2018
  16. codablock referenced this in commit 22d279d0d7 on Jan 16, 2018
  17. codablock referenced this in commit 0982d6d3c8 on Jan 17, 2018
  18. andvgal referenced this in commit 25ea905b9b on Jan 6, 2019
  19. CryptoCentric referenced this in commit c253c3701d on Feb 25, 2019
  20. furszy referenced this in commit a87f8595fc on Apr 8, 2021
  21. MarcoFalke locked this on Sep 8, 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-14 18:15 UTC

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