This commit is contained in:
neargye 2019-10-24 19:49:00 +05:00
parent d06a1c717a
commit 27c2aeb6bb

View file

@ -107,7 +107,7 @@ class [[nodiscard]] cstring {
using reverse_iterator = std::reverse_iterator<iterator>; using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>; using const_reverse_iterator = std::reverse_iterator<const_iterator>;
explicit constexpr cstring(std::string_view str) noexcept : chars_{} { constexpr explicit cstring(std::string_view str) noexcept : chars_{} {
assert(str.size() == N); assert(str.size() == N);
for (std::size_t i = 0; i < N; ++i) { for (std::size_t i = 0; i < N; ++i) {
chars_[i] = str[i]; chars_[i] = str[i];