From 7efcb94a5e4880ce3c3f911ab1f1ce9bb73b0b8c Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Sat, 22 Apr 2023 22:20:29 +0530 Subject: [PATCH] Fix compile error: Compiler refuses to deduce alias template arguments on Darwin (clang 14.0.3) input_handler.cc:1476:16: error: alias template 'ConstArrayView' requires template arguments; argument deduction only allowed for class templates insert(ConstArrayView{content}); ^ input_handler.cc:1522:16: error: alias template 'ConstArrayView' requires template arguments; argument deduction only allowed for class templates insert(ConstArrayView{str}); ^ --- src/input_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 97db92c6..129a7e03 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1473,7 +1473,7 @@ public: void paste(StringView content) override { - insert(ConstArrayView{content}); + insert(ConstArrayView{content}); m_idle_timer.set_next_date(Clock::now() + get_idle_timeout(context())); } @@ -1519,7 +1519,7 @@ private: void insert(Codepoint key) { String str{key}; - insert(ConstArrayView{str}); + insert(ConstArrayView{str}); context().hooks().run_hook(Hook::InsertChar, str, context()); }