From 4487c800df1136346328514ce4c2929b854d2d03 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 8 Jul 2022 13:31:01 +0200 Subject: [PATCH] Util: Change Array constructor std::vector supports both vector and initializer_list for construction. --- src/util/json/array.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/json/array.h b/src/util/json/array.h index b59c84a..b77463f 100644 --- a/src/util/json/array.h +++ b/src/util/json/array.h @@ -7,7 +7,6 @@ #ifndef JSON_ARRAY_H #define JSON_ARRAY_H -#include #include // move #include @@ -22,7 +21,7 @@ public: Array() {} virtual ~Array() {} - Array(const std::initializer_list& values) + Array(const std::vector& values) : m_values(values) {}