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

Github-Pull: #17634
Rebased-From: 98fbd1cdffaa69357091cc67e959ac21119dfa16
This commit is contained in:
Hennadii Stepanov 2019-11-29 21:18:24 +02:00 committed by João Barbosa
parent b8101fb7ac
commit cd67b1dcb8
6 changed files with 6 additions and 5 deletions

View file

@ -6,11 +6,11 @@
#define BITCOIN_CUCKOOCACHE_H #define BITCOIN_CUCKOOCACHE_H
#include <array> #include <array>
#include <algorithm>
#include <atomic> #include <atomic>
#include <cstring>
#include <cmath> #include <cmath>
#include <cstring>
#include <memory> #include <memory>
#include <utility>
#include <vector> #include <vector>

View file

@ -14,6 +14,7 @@
#include <cstddef> #include <cstddef>
#include <iterator> #include <iterator>
#include <type_traits> #include <type_traits>
#include <utility>
#pragma pack(push, 1) #pragma pack(push, 1)
/** Implements a drop-in replacement for std::vector<T> which stores up to N /** Implements a drop-in replacement for std::vector<T> which stores up to N

View file

@ -10,7 +10,7 @@
#include <sync.h> #include <sync.h>
#include <util/time.h> #include <util/time.h>
#include <algorithm> #include <utility>
#include <QDebug> #include <QDebug>
#include <QList> #include <QList>

View file

@ -11,7 +11,7 @@
#include <interfaces/node.h> #include <interfaces/node.h>
#include <sync.h> #include <sync.h>
#include <algorithm> #include <utility>
#include <QDebug> #include <QDebug>
#include <QList> #include <QList>

View file

@ -18,6 +18,7 @@
#include <condition_variable> #include <condition_variable>
#include <unordered_set> #include <unordered_set>
#include <utility>
// BasicTestingSetup not sufficient because nScriptCheckThreads is not set // BasicTestingSetup not sufficient because nScriptCheckThreads is not set
// otherwise. // otherwise.

View file

@ -22,7 +22,6 @@
#include <txdb.h> #include <txdb.h>
#include <versionbits.h> #include <versionbits.h>
#include <algorithm>
#include <atomic> #include <atomic>
#include <exception> #include <exception>
#include <map> #include <map>