bitcoin/src/policy
MarcoFalke 8b1de78577
Merge bitcoin/bitcoin#23413: Replace MakeSpan helper with Span deduction guide
11daf6ceb1 More Span simplifications (Pieter Wuille)
568dd2f839 Replace MakeSpan helper with Span deduction guide (Pieter Wuille)

Pull request description:

  C++17 supports [user-defined deduction guides](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction), allowing class constructors to be invoked without specifying class template arguments. Instead, the code can contain rules to infer the template arguments from the constructor argument types.

  This alleviates the need for the `MakeSpan` helper. Convert the existing MakeSpan rules into deduction rules for `Span` itself, and replace all invocations of `MakeSpan` with just `Span` ones.

ACKs for top commit:
  MarcoFalke:
    re-ACK 11daf6ceb1 Only change is removing a hunk in the tests 🌕

Tree-SHA512: 10f3e82e4338f39d9b7b407cd11aac7ebe1e9191b58e3d7f4e5e338a4636c0e126b4a1d912127c7446f57ba356c8d6544482e47f97901efea6a54fffbfd7895f
2021-12-03 10:44:37 +01:00
..
feerate.cpp fees: Always round up fee calculated from a feerate 2021-10-08 13:53:48 -04:00
feerate.h doc: Fix typos in endif header comments 2021-11-16 09:56:45 +01:00
fees.cpp Merge bitcoin/bitcoin#22014: refactor: Make m_cs_fee_estimator non-recursive 2021-12-02 19:54:21 +01:00
fees.h Merge bitcoin/bitcoin#22014: refactor: Make m_cs_fee_estimator non-recursive 2021-12-02 19:54:21 +01:00
packages.cpp MOVEONLY: context-free package policies 2021-06-02 17:26:44 +01:00
packages.h MOVEONLY: context-free package policies 2021-06-02 17:26:44 +01:00
policy.cpp Replace MakeSpan helper with Span deduction guide 2021-11-29 17:58:53 -05:00
policy.h policy: Treat taproot as always active 2021-11-16 08:20:33 +01:00
rbf.cpp [mempool] delete exists(uint256) function 2021-10-21 16:26:59 +01:00
rbf.h add missing includes in policy/rbf 2021-09-20 13:34:48 +01:00
settings.cpp scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
settings.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00