From a55e06c6768a402a94928470feac2aa39b3585da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Mon, 10 Aug 2020 13:55:45 +0200 Subject: [PATCH] Remove C++14isms from `delayed_helper::apply()` Clang to the rescue: - `void` isn't a literal type in C++11 - calling `f()` from `constexpr` isn't allowed in C++11 So, remove `constexpr` to simplify things. --- rtgui/delayed.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/delayed.h b/rtgui/delayed.h index cf4f22bf8..b57d7300b 100644 --- a/rtgui/delayed.h +++ b/rtgui/delayed.h @@ -55,13 +55,13 @@ namespace delayed_helper // See https://aherrmann.github.io/programming/2016/02/28/unpacking-tuples-in-cpp14/ template - constexpr void apply_impl(F f, T t, index_sequence) + void apply_impl(F f, T t, index_sequence) { f(std::get(t)...); } template - constexpr void apply(F f, T t) + void apply(F f, T t) { apply_impl(f, t, make_index_sequence{}>{}); }