Ensure we cannot call StringView::StringView{Codepoint}

This commit is contained in:
Maxime Coste 2016-07-27 09:08:08 +01:00
parent a09b094f2b
commit df0773feeb

View File

@ -192,6 +192,7 @@ public:
StringView(const String& str) : m_data{str.data()}, m_length{(int)str.length()} {} StringView(const String& str) : m_data{str.data()}, m_length{(int)str.length()} {}
StringView(const char& c) : m_data(&c), m_length(1) {} StringView(const char& c) : m_data(&c), m_length(1) {}
StringView(int c) = delete; StringView(int c) = delete;
StringView(Codepoint c) = delete;
[[gnu::always_inline]] [[gnu::always_inline]]
constexpr const char* data() const { return m_data; } constexpr const char* data() const { return m_data; }