Page MenuHomePhabricator

Add std::optional support to Boost's equality check
ClosedPublic

Authored by PiRK on Wed, Nov 5, 12:29.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC3fb2ed2ceb27: Add std::optional support to Boost's equality check
Summary

Also moved the operators to the bottom of the file since they're less important and to group them together.

Co-authored-by: Hodlinator <172445034+hodlinator@users.noreply.github.com>
Co-authored-by: stickies-v <stickies-v@protonmail.com>

This is a partial backport of core#30618
https://github.com/bitcoin/bitcoin/pull/30618/commits/743ac30e349e181c26a2d2af0bcb93b0835ce521

This allows addressing some TODOs in coins_tests.cpp (which turned out needed a bit more than just switching to c++20)

Test Plan

ninja check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Wed, Nov 5, 12:29
src/test/coins_tests.cpp
622–625 ↗(On Diff #56424)

not related, but the change is trivial enough to avoid a separate diff for this imo

This revision is now accepted and ready to land.Wed, Nov 5, 16:29