Declare single-argument (non-converting) constructors "explicit" #10969

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:explicit changing 68 files +105 −105
  1. practicalswift commented at 12:04 PM on August 1, 2017: contributor

    Declare single-argument (non-converting) constructors explicit.

    In order to avoid unintended implicit conversions.

    For a more thorough discussion, see "C.46: By default, declare single-argument constructors explicit" in the C++ Core Guidelines (Stroustrup & Sutter).

  2. jonasschnelli added the label Refactoring on Aug 3, 2017
  3. practicalswift force-pushed on Aug 9, 2017
  4. practicalswift force-pushed on Aug 11, 2017
  5. practicalswift commented at 1:35 PM on August 11, 2017: contributor

    Rebased! Feel free to review :-)

  6. fanquake commented at 1:34 PM on August 12, 2017: member

    Rebooted the failing test.

  7. practicalswift commented at 2:38 PM on August 12, 2017: contributor

    Thanks!

  8. MarcoFalke commented at 12:46 AM on August 16, 2017: member

    utACK 3bdbbce

  9. Declare single-argument (non-converting) constructors "explicit"
    In order to avoid unintended implicit conversions.
    64fb0ac016
  10. practicalswift force-pushed on Aug 16, 2017
  11. practicalswift commented at 2:33 PM on August 16, 2017: contributor

    Rebased!

  12. laanwj commented at 8:58 PM on August 17, 2017: member

    utACK https://github.com/bitcoin/bitcoin/pull/10969/commits/64fb0ac016c7fd01c60c39af60f6431bac57f9ee, this is a good precaution to avoid accidental "automatic conversions".

  13. laanwj merged this on Aug 18, 2017
  14. laanwj closed this on Aug 18, 2017

  15. laanwj referenced this in commit 4afb5aa9e1 on Aug 18, 2017
  16. practicalswift cross-referenced this on Aug 22, 2017 from issue [developer-notes] By default, declare single-argument constructors "explicit" by practicalswift
  17. MarcoFalke referenced this in commit 3f726c99f8 on Aug 25, 2017
  18. sickpig referenced this in commit e64ef7fbc4 on Jan 11, 2018
  19. sickpig cross-referenced this on Jan 11, 2018 from issue tinyformat.h upstream changes by sickpig
  20. sickpig referenced this in commit db75b3d3ce on Jan 11, 2018
  21. MarcoFalke cross-referenced this on Oct 20, 2018 from issue test: Add linter to make sure single parameter constructors are marked explicit by practicalswift
  22. PastaPastaPasta referenced this in commit ea99051b54 on Sep 19, 2019
  23. PastaPastaPasta referenced this in commit b42580ebac on Sep 19, 2019
  24. PastaPastaPasta referenced this in commit 80ec4c82c6 on Sep 23, 2019
  25. PastaPastaPasta referenced this in commit 88877df475 on Sep 23, 2019
  26. PastaPastaPasta referenced this in commit 7b634b2d57 on Sep 24, 2019
  27. PastaPastaPasta referenced this in commit e0f44f788a on Sep 24, 2019
  28. PastaPastaPasta referenced this in commit ef6aa695c8 on Nov 19, 2019
  29. PastaPastaPasta referenced this in commit 4bdaa1443d on Nov 21, 2019
  30. PastaPastaPasta referenced this in commit afacabb3ed on Dec 9, 2019
  31. PastaPastaPasta referenced this in commit df95840315 on Dec 22, 2019
  32. PastaPastaPasta referenced this in commit 763b9b25f0 on Jan 1, 2020
  33. PastaPastaPasta referenced this in commit a40f5393a2 on Jan 2, 2020
  34. PastaPastaPasta referenced this in commit d33ee8b1cd on Jan 2, 2020
  35. PastaPastaPasta referenced this in commit 68f612f958 on Jan 2, 2020
  36. PastaPastaPasta referenced this in commit f75b7ef8ab on Jan 4, 2020
  37. PastaPastaPasta referenced this in commit 7f24409d22 on Jan 4, 2020
  38. PastaPastaPasta referenced this in commit 284268dd6f on Jan 10, 2020
  39. PastaPastaPasta referenced this in commit 9249670002 on Jan 10, 2020
  40. PastaPastaPasta referenced this in commit fdf3f25a0a on Jan 10, 2020
  41. PastaPastaPasta referenced this in commit 87d90136c9 on Jan 12, 2020
  42. str4d referenced this in commit e591f94fcf on Jul 31, 2020
  43. str4d cross-referenced this on Jul 31, 2020 from issue Locked memory manager by str4d
  44. zkbot referenced this in commit 5ef5d8d268 on Jul 31, 2020
  45. zkbot referenced this in commit 7d94064616 on Sep 29, 2020
  46. ckti referenced this in commit 3a486ab694 on Mar 28, 2021
  47. ckti referenced this in commit d23b02369c on Mar 28, 2021
  48. gades referenced this in commit 6d8571b958 on Jun 25, 2021
  49. gades referenced this in commit ecb5193a3f on Jun 30, 2021
  50. 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