diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-07-27 09:08:08 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-07-27 09:08:08 +0100 |
| commit | df0773feeb59391c998f30c658b80997790f30fd (patch) | |
| tree | ecc84b671fe5e0f385275849dfd20da23e254607 /src/string.hh | |
| parent | a09b094f2b062340c12d82ff6eef541133e4cd11 (diff) | |
Ensure we cannot call StringView::StringView{Codepoint}
Diffstat (limited to 'src/string.hh')
| -rw-r--r-- | src/string.hh | 1 |
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; } |
