convert address_family_ranking to std::array
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
061dd2dfef
commit
94b0baceb0
@ -30,9 +30,10 @@
|
|||||||
#include "AddressInfo.hxx"
|
#include "AddressInfo.hxx"
|
||||||
#include "Features.hxx"
|
#include "Features.hxx"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
static constexpr int address_family_ranking[] = {
|
static constexpr auto address_family_ranking = std::array {
|
||||||
#ifdef HAVE_UN
|
#ifdef HAVE_UN
|
||||||
AF_LOCAL,
|
AF_LOCAL,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user