Skip to content

Commit facc4f1

Browse files
author
MarcoFalke
committed
refactor: Replace fwd-decl with proper include
This is fine, because the span.h include is lightweight and a proper include will be needed anyway when switching to std::span.
1 parent fac3a78 commit facc4f1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/script/solver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
#include <attributes.h>
1212
#include <script/script.h>
13+
#include <span.h>
1314

1415
#include <string>
1516
#include <optional>
1617
#include <utility>
1718
#include <vector>
1819

1920
class CPubKey;
20-
template <typename C> class Span;
2121

2222
enum class TxoutType {
2323
NONSTANDARD,

src/test/util/net.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <netaddress.h>
1313
#include <node/connection_types.h>
1414
#include <node/eviction.h>
15+
#include <span.h>
1516
#include <sync.h>
1617
#include <util/sock.h>
1718

@@ -28,9 +29,6 @@
2829

2930
class FastRandomContext;
3031

31-
template <typename C>
32-
class Span;
33-
3432
struct ConnmanTestMsg : public CConnman {
3533
using CConnman::CConnman;
3634

src/util/hasher.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
#include <crypto/common.h>
99
#include <crypto/siphash.h>
1010
#include <primitives/transaction.h>
11+
#include <span.h>
1112
#include <uint256.h>
1213

1314
#include <cstdint>
1415
#include <cstring>
1516

16-
template <typename C> class Span;
17-
1817
class SaltedTxidHasher
1918
{
2019
private:

0 commit comments

Comments
 (0)