fix build

This commit is contained in:
neargye 2019-10-03 18:39:54 +05:00
parent 4b3536d211
commit 1baf418d21

View file

@ -232,15 +232,15 @@ struct static_string final {
constexpr const char* data() const noexcept { return chars.data(); } constexpr const char* data() const noexcept { return chars.data(); }
constexpr std::size_t size() const noexcept { return chars.size(); } constexpr std::size_t size() const noexcept { return N; }
constexpr operator std::string_view() const noexcept { return {data(), size()}; } constexpr operator std::string_view() const noexcept { return {data(), size()}; }
private: private:
template <std::size_t... I> template <std::size_t... I>
constexpr static_string(std::string_view str, std::index_sequence<I...>) noexcept : chars{{str[I]...}} {} constexpr static_string(std::string_view str, std::index_sequence<I...>) noexcept : chars{{str[I]..., '\0'}} {}
const std::array<char, N> chars; const std::array<char, N + 1> chars;
}; };
template <> template <>