summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorSidharth Kshatriya <sid.kshatriya@gmail.com>2023-04-22 22:20:29 +0530
committerSidharth Kshatriya <sid.kshatriya@gmail.com>2023-04-22 22:20:29 +0530
commit7efcb94a5e4880ce3c3f911ab1f1ce9bb73b0b8c (patch)
treed0bbb11fe5c5c7c146445710993d069540408e02 /src/input_handler.cc
parent019fbc5439ad884f172c324ebc928463eab9bc74 (diff)
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}); ^
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc4
1 files 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<StringView>{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<String>{str});
context().hooks().run_hook(Hook::InsertChar, str, context());
}