Minor changes for c++11 consistency #7964

pull laanwj wants to merge 2 commits into bitcoin:master from laanwj:2016_04_c++11_consistency changing 4 files +5 −5
  1. laanwj commented at 11:44 AM on April 28, 2016: member
    • Bitwise logic combined with < with undefined signedness will potentially result in undefined behavior. Fix this by defining the type as a c++11 typed enum. Fixes #6017.
    • auto_ptr → unique_ptr: Change the few occurrences of the deprecated auto_ptr to c++11 unique_ptr. Silences the deprecation warnings.
  2. chain: define enum used as bit field as uint32_t
    Bitwise logic combined with `<` with undefined signedness will
    potentially results in undefined behavior. Fix this by defining the type
    as a c++11 typed enum.
    
    Fixes #6017.
    073225cb01
  3. auto_ptr → unique_ptr
    Change the few occurrences of the deprecated `auto_ptr` to c++11 `unique_ptr`.
    Silences the deprecation warnings.
    
    Also add a missing `std::` for consistency.
    07e4edb056
  4. laanwj added the label Refactoring on Apr 28, 2016
  5. randy-waterhouse commented at 12:13 PM on April 28, 2016: contributor

    ACK.

  6. jonasschnelli commented at 12:27 PM on April 28, 2016: contributor

    utACK 07e4edb056249e017b0e5a4783e4452ce892b52d

  7. mruddy commented at 2:49 PM on April 28, 2016: contributor

    utACK 07e4edb

  8. theuni commented at 9:12 PM on April 28, 2016: member

    utACK 07e4edb056249e017b0e5a4783e4452ce892b52d

  9. fanquake commented at 10:28 AM on May 1, 2016: member

    utACK 07e4edb

  10. btcdrak commented at 10:39 AM on May 1, 2016: contributor

    utACK 07e4edb056249e017b0e5a4783e4452ce892b52d

  11. dcousens commented at 1:18 AM on May 2, 2016: contributor

    utACK 07e4edb

  12. laanwj merged this on May 2, 2016
  13. laanwj closed this on May 2, 2016

  14. laanwj referenced this in commit 86b800c6a2 on May 2, 2016
  15. zkbot referenced this in commit b0afc4ba1d on Mar 22, 2017
  16. zkbot referenced this in commit f9f48667be on Mar 25, 2017
  17. codablock referenced this in commit 91f679c2b2 on Sep 16, 2017
  18. codablock referenced this in commit 2e6d495989 on Sep 19, 2017
  19. codablock referenced this in commit a468803bd9 on Dec 20, 2017
  20. DrahtBot 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-13 18:15 UTC

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