Utf8View: Try fixing the travis-ci build

There's some overload ambiguity when doing Utf8View("literal")
This commit is contained in:
Andreas Kling 2019-09-05 19:06:39 +02:00
parent 6d3f52c4a4
commit fb39e46d3d
2 changed files with 6 additions and 0 deletions

View file

@ -13,6 +13,11 @@ Utf8View::Utf8View(const StringView& string)
{
}
Utf8View::Utf8View(const char* string)
: m_string(string)
{
}
const unsigned char* Utf8View::begin_ptr() const
{
return (const unsigned char*)m_string.characters_without_null_termination();

View file

@ -28,6 +28,7 @@ class Utf8View {
public:
explicit Utf8View(const String&);
explicit Utf8View(const StringView&);
explicit Utf8View(const char*);
~Utf8View() {}
const StringView& as_string() const { return m_string; }