diff --git a/src/template.h b/src/template.h index 6d94a9cd..90cb93aa 100644 --- a/src/template.h +++ b/src/template.h @@ -417,7 +417,7 @@ public: explicit StringRef(const char *s) : base(s), len(strlen(s)) {} constexpr StringRef(const char *s, size_t n) : base(s), len(n) {} template - StringRef(const CharT *s, size_t n) + constexpr StringRef(const CharT *s, size_t n) : base(reinterpret_cast(s)), len(n) {} template StringRef(InputIt first, InputIt last)