From e5213674e324ade7d3eb8634492b0689d339c268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 20 Sep 2016 17:02:10 -0400 Subject: [PATCH] value: fix compilation on older clang --- include/opendht/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/opendht/value.h b/include/opendht/value.h index 16fd9051..320fd27e 100644 --- a/include/opendht/value.h +++ b/include/opendht/value.h @@ -156,7 +156,7 @@ struct Value }, std::placeholders::_1, std::move(set)); } static Filter chain(std::initializer_list<Filter> l) { - return chainAll({l.begin(), l.end()}); + return chainAll(std::vector<Filter>(l.begin(), l.end())); } static Filter chainOr(Filter&& f1, Filter&& f2) { if (not f1 or not f2) return AllFilter(); -- GitLab