doc: document preference for list-initialization #29469

pull andrewtoth wants to merge 1 commits into bitcoin:master from andrewtoth:list-initialization changing 1 files +4 −2
  1. andrewtoth commented at 6:18 PM on February 23, 2024: contributor

    Variable initialization is very complex in C++. There seems to be some consensus that when in doubt, use list-initialization.

    https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-list https://www.learncpp.com/cpp-tutorial/variable-assignment-and-initialization/

  2. DrahtBot commented at 6:18 PM on February 23, 2024: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK maflcko

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. DrahtBot added the label Docs on Feb 23, 2024
  4. doc: document preference for list-initialization eb5d78c649
  5. andrewtoth force-pushed on Feb 23, 2024
  6. maflcko commented at 9:55 AM on February 24, 2024: member

    ACK eb5d78c649c9ad55b3809473b0d5ec4b88ed923d

  7. fanquake merged this on Feb 26, 2024
  8. fanquake closed this on Feb 26, 2024

  9. bitcoin locked this on Feb 25, 2025
Labels

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-22 18:13 UTC

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