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. sipa cross-referenced this on May 1, 2016 from issue Use std::unique_ptr instead of auto_ptr. by domob1812
  10. fanquake commented at 10:28 AM on May 1, 2016: member

    utACK 07e4edb

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

    utACK 07e4edb056249e017b0e5a4783e4452ce892b52d

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

    utACK 07e4edb

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

  15. laanwj referenced this in commit 86b800c6a2 on May 2, 2016
  16. str4d cross-referenced this on Mar 14, 2017 from issue libevent-based http server by str4d
  17. zkbot referenced this in commit b0afc4ba1d on Mar 22, 2017
  18. zkbot referenced this in commit f9f48667be on Mar 25, 2017
  19. dagurval cross-referenced this on Apr 26, 2017 from issue chain: define enum used as bit field as uint32_t by dagurval
  20. codablock referenced this in commit 91f679c2b2 on Sep 16, 2017
  21. codablock referenced this in commit 2e6d495989 on Sep 19, 2017
  22. codablock referenced this in commit a468803bd9 on Dec 20, 2017
  23. bitcoin 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-05-20 06:55 UTC