fjahr
commented at 6:36 PM on November 29, 2020:
contributor
I found the extended-lint-cppcheck linter still uses std=c++11 when reviewing #20471. The only difference in the output after this change is one line is missing:
src/script/descriptor.cpp:159:5: warning: Struct 'PubkeyProvider' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
After some digging, I am still not sure why this one is ignored with c++17 when 40 othernoExplicitConstructor warnings were still appearing.
In the second commit, I fix these warnings, adding explicit where appropriate and adding fixes to ignore otherwise.
DrahtBot added the label GUI on Nov 29, 2020
DrahtBot added the label Mempool on Nov 29, 2020
DrahtBot added the label P2P on Nov 29, 2020
DrahtBot added the label RPC/REST/ZMQ on Nov 29, 2020
DrahtBot added the label Validation on Nov 29, 2020
DrahtBot added the label Wallet on Nov 29, 2020
DrahtBot
commented at 2:09 AM on November 30, 2020:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
#19910 (net processing: Move peer_map to PeerManager by jnewbery)
#19461 (multiprocess: Add bitcoin-gui -ipcconnect option by ryanofsky)
#19460 (multiprocess: Add bitcoin-wallet -ipcconnect option by ryanofsky)
#18261 (Erlay: bandwidth-efficient transaction relay protocol by naumenkogs)
#18017 (txmempool: split epoch logic into class by ajtowns)
#10102 ([experimental] Multiprocess bitcoin by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
practicalswift
commented at 2:26 PM on November 30, 2020:
contributor
Concept ACK: explicit is better than implicit generally, and to be explicit: especially when it comes to explicit ctors
@fjahr Looks like the fuzzing harnesses needs some massage to compile properly after your fix :)
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:54 UTC