From 829258e7038fe7eff849677f1ccaeca3e704eb67 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sun, 2 Dec 2018 20:06:32 +0100 Subject: [PATCH] Fix compilation with gcc5, stdc++14 Fixes: shrpx_api_downstream_connection.cc:57:3: error: array must be initialized with a brace-enclosed initializer --- src/shrpx_api_downstream_connection.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shrpx_api_downstream_connection.cc b/src/shrpx_api_downstream_connection.cc index 1e9e8fc9..3c97462f 100644 --- a/src/shrpx_api_downstream_connection.cc +++ b/src/shrpx_api_downstream_connection.cc @@ -42,6 +42,7 @@ namespace { // List of API endpoints const std::array &apis() { static const auto apis = new std::array{ + { APIEndpoint{ StringRef::from_lit("/api/v1beta1/backendconfig"), true, @@ -54,6 +55,7 @@ const std::array &apis() { (1 << API_METHOD_GET), &APIDownstreamConnection::handle_configrevision, }, + } }; return *apis;