From df0773feeb59391c998f30c658b80997790f30fd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 27 Jul 2016 09:08:08 +0100 Subject: [PATCH] Ensure we cannot call StringView::StringView{Codepoint} --- src/string.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/string.hh b/src/string.hh index fb48137e..d7e0e56c 100644 --- a/src/string.hh +++ b/src/string.hh @@ -192,6 +192,7 @@ public: StringView(const String& str) : m_data{str.data()}, m_length{(int)str.length()} {} StringView(const char& c) : m_data(&c), m_length(1) {} StringView(int c) = delete; + StringView(Codepoint c) = delete; [[gnu::always_inline]] constexpr const char* data() const { return m_data; }