convert address_family_ranking to std::array

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-11-11 01:03:29 -08:00
parent 061dd2dfef
commit 94b0baceb0

View File

@ -30,9 +30,10 @@
#include "AddressInfo.hxx"
#include "Features.hxx"
#include <array>
#include <cassert>
static constexpr int address_family_ranking[] = {
static constexpr auto address_family_ranking = std::array {
#ifdef HAVE_UN
AF_LOCAL,
#endif