summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-07-27 09:08:08 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-07-27 09:08:08 +0100
commitdf0773feeb59391c998f30c658b80997790f30fd (patch)
treeecc84b671fe5e0f385275849dfd20da23e254607 /src/string.hh
parenta09b094f2b062340c12d82ff6eef541133e4cd11 (diff)
Ensure we cannot call StringView::StringView{Codepoint}
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh1
1 files changed, 1 insertions, 0 deletions
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; }