Add constexpr to StringRef(const CharT *, size_t)

This commit is contained in:
Tatsuhiro Tsujikawa 2017-01-09 21:15:53 +09:00
parent 4be5de1163
commit 0567f1f038
1 changed files with 1 additions and 1 deletions

View File

@ -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 <typename CharT>
StringRef(const CharT *s, size_t n)
constexpr StringRef(const CharT *s, size_t n)
: base(reinterpret_cast<const char *>(s)), len(n) {}
template <typename InputIt>
StringRef(InputIt first, InputIt last)