HomePhabricator

Use correct C++11 header for std::swap()

Description

Use correct C++11 header for std::swap()

Summary:
This is a backport of Core PR17634 [2/2]
https://github.com/bitcoin/bitcoin/pull/17634/commits/98fbd1cdffaa69357091cc67e959ac21119dfa16

Depends on D8281

The header algorithm is needed in cuckoocache.h for std::find (see PR18565). I'm not sure how Core got away with removing it for multiple months, for us it cause a compiler error.

Test Plan: ninja && ninja check

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D8282

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Nov 5 2020, 17:40
PiRKCommitted on Nov 5 2020, 17:46
abc-botPushed on Nov 5 2020, 17:46
Reviewer
Restricted Owners Package
Differential Revision
D8282: Use correct C++11 header for std::swap()
Parents
rABC963c8c171c77: Implement Grasberg DAA
Branches
Unknown
Tags
Unknown

Event Timeline

PiRK committed rABCff91efd79339: Use correct C++11 header for std::swap() (authored by Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>).Nov 5 2020, 17:46