From 5a5f1955f7f7b71ff9eb3ba1d4f725b02b12aaf3 Mon Sep 17 00:00:00 2001 From: Patrick Lodder Date: Wed, 1 Feb 2023 01:01:06 +0100 Subject: [PATCH] net: explicitly include std::array On boost 1.81 std::array is no longer included by default and causes a compile error on net_processing.cpp: macOS with apple clang 14.0: CXX libdogecoin_server_a-net_processing.o net_processing.cpp:1112:47: error: implicit instantiation of undefined template 'std::array, 2>' std::array,2> best{{{0, nullptr}, {0, nullptr}}}; debian:exprimental with gcc 12.1: net_processing.cpp: In function 'void RelayAddress(const CAddress&, bool, CConnman&)': net_processing.cpp:1112:47: error: variable 'std::array, 2> best' has initializer but incomplete type 1112 | std::array,2> best{{{0, nullptr}, {0, nullptr}}}; | this commit fixes the problem by explicitly including . --- src/net_processing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index ee3612b86..20fe16fd4 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -31,6 +31,7 @@ #include "utilstrencodings.h" #include "validationinterface.h" +#include #include #if defined(NDEBUG)