DrahtBot added the label
Validation
on Apr 28, 2022
laanwj
commented at 5:43 pm on April 28, 2022:
member
Concept ACK.
Do we have any other swap member functions?
jonatack renamed this:
validation: make the CScriptCheck::swap() member function `noexcept`
validation: make CScriptCheck and prevector swap members noexcept
on Apr 28, 2022
validation: make CScriptCheck and prevector swap member functions noexcept
Reason:
A swap must not fail; when a class has a swap member function, it should be declared noexcept.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c84-a-swap-function-must-not-fail
abc1ee5090
vincenzopalazzo approved
vincenzopalazzo
commented at 6:31 pm on April 28, 2022:
none
test, bench: make prevector and checkqueue swap member functions noexcept
Reason:
A swap must not fail; when a class has a swap member function, it should be declared noexcept.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c84-a-swap-function-must-not-fail
e5485e8e4b
jonatack force-pushed
on Apr 28, 2022
jonatack
commented at 6:35 pm on April 28, 2022:
member
Concept ACK. Do we have any other swap member functions?
Added the remaining ones found with git grep "void swap" and looking through git grep -C3 "std::swap" … critical code in one commit, and test/bench in a second one.
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: 2024-11-21 09:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me