From 94b0baceb05ebf2d1f69110d15d64d5d1f92c7a6 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 11 Nov 2021 01:03:29 -0800 Subject: [PATCH] convert address_family_ranking to std::array Signed-off-by: Rosen Penev --- src/net/AddressInfo.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/AddressInfo.cxx b/src/net/AddressInfo.cxx index 11ab355d6..0acf8b81f 100644 --- a/src/net/AddressInfo.cxx +++ b/src/net/AddressInfo.cxx @@ -30,9 +30,10 @@ #include "AddressInfo.hxx" #include "Features.hxx" +#include #include -static constexpr int address_family_ranking[] = { +static constexpr auto address_family_ranking = std::array { #ifdef HAVE_UN AF_LOCAL, #endif